p-ranav/argparse

Feature request: subparser (hidden) aliases

JohannesBe opened this issue · 0 comments

Currently we can add hidden aliases for arguments: thanks for this, it's a great option that I regularly use!

For programs using subcommands though, it can sometimes be nice to also have shorthands for these subcommands.
For instance, docker container ls is the 'official' command (shown when doing docker container -h), but docker container list also works.

Some other examples:

  • ollama serve = ollama start
  • rclone completion = rclone genautocomplete
  • ...

If this is too complicated for adding, or you think it's not within scope/the envisioned future of the library, please feel free to completely ignore me. I just thought it could be a nice addition (at least I have some use cases for it) that you'd maybe want to know about :)

Thanks your considerations!

Br,
J