Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: subparser (hidden) aliases #365

Open
JohannesBe opened this issue Jun 15, 2024 · 0 comments
Open

Feature request: subparser (hidden) aliases #365

JohannesBe opened this issue Jun 15, 2024 · 0 comments

Comments

@JohannesBe
Copy link

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

@JohannesBe JohannesBe changed the title Feature request: allow subparser (hidden) aliases Feature request: subparser (hidden) aliases Jun 15, 2024
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

No branches or pull requests

1 participant