Skip to content

Conversation

@nik-rev
Copy link
Contributor

@nik-rev nik-rev commented May 30, 2025

I'm using this, I quite like it. thanks for making this!

I propose to add aliases for the 4 subcommands, since they're quite long to type. Descriptive names are nice, but when you need to type it a lot it's more comfortable to have short names as an option.

I like to alias ripunzip to rz.
So instead of ripunzip unzip-file I can just type rz uf

Help menu looks like this:

A tool to unzip an archive in parallel

Usage: ripunzip [OPTIONS] <COMMAND>

Commands:
  list-file   Lists a zip file [aliases: lf]
  unzip-file  Unzip a zip file [aliases: uf]
  list-uri    Lists a zip file from a URI [aliases: lu]
  unzip-uri   Unzips a zip file from a URI [aliases: uu]
  help        Print this message or the help of the given subcommand(s)

Options:
  -v, --verbose...  Increase logging verbosity
  -q, --quiet...    Decrease logging verbosity
  -h, --help        Print help (see more with '--help')
  -V, --version     Print version

If you'd like the alias to be hidden, that's also possible

  • Tests pass
  • Appropriate changes to README are included in PR

@google-cla
Copy link

google-cla bot commented May 30, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@nik-rev nik-rev force-pushed the subcommand-alias branch from 94dfef2 to ea1b584 Compare May 30, 2025 21:13
@pgrace-google pgrace-google merged commit d54dbf2 into GoogleChrome:main Jul 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants