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

Don't show all aliases in the same usage line #239

Closed
senia-psm opened this issue Jul 19, 2023 · 4 comments · Fixed by #255
Closed

Don't show all aliases in the same usage line #239

senia-psm opened this issue Jul 19, 2023 · 4 comments · Fixed by #255

Comments

@senia-psm
Copy link
Member

senia-psm commented Jul 19, 2023

With aliases usage docs are unreadable.

Real life example (obfuscated):
There are 7 subcommands. Every command looks like this:

  • subcommand (-C, --caaaaaaaa-aa text)|[(-p, --paaaaaa-aaaa text)|(-P, --paaaaaa-aa text)] (-c, --caaaaaaaa-aaaa text) (-i, --iaaaaaaa-aaaa text [(-k, --iaaaaaaaaa-aaa text)] (-f, --faaaaaaa text) (-p, --paaaaaaaaa text) [(-s, --aaa-aaaaa)]
@senia-psm
Copy link
Member Author

2 possible solutions:

  1. use only main name
  2. use 2 lines per subcommand - 1 with all long names and 1 with all short names

@pablf
Copy link
Member

pablf commented Jul 19, 2023

I think this could be configurable using `CliConfig

@senia-psm
Copy link
Member Author

@pablf I can't see anything like that in CliConfig

@pablf
Copy link
Member

pablf commented Jul 19, 2023

Sorry, I was saying that it could be a possibility to make it a configurable attribute in CliConfig, although it is not at the moment.

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 a pull request may close this issue.

2 participants