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

Unable to change order of options in --help output. #191

Open
1 of 2 tasks
donmccurdy opened this issue Jul 20, 2020 · 0 comments
Open
1 of 2 tasks

Unable to change order of options in --help output. #191

donmccurdy opened this issue Jul 20, 2020 · 0 comments

Comments

@donmccurdy
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Caporal.js sorts my options alphabetically. I find this more limiting than useful — if I wanted the options sorted it would be easy to do so, but sometimes I want to put the most common/useful options at the top, and to hide some of the others. Or some options might only be valid in combination with certain others, in which case I might want to group them together.

Describe the solution you'd like
I'd prefer that Caporal.js displayed options in the order given, the way it displays commands.
A config option to disable sorting of options would also work for me.

Describe alternatives you've considered
Renaming options so that they appear alphabetically in a prioritized way. This is sort of workable to a point, but not ideal.

Would you be able to work on it and provide a pull request ?

  • Yes
  • No
@donmccurdy donmccurdy mentioned this issue Aug 12, 2021
2 tasks
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