Sitelet https://web.archive.org/web/20200920121040/https://github.com/mattallty/Caporal.js/issues/191
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
donmccurdy opened this issue Jul 20, 2020 · 0 comments
Open

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

donmccurdy opened this issue Jul 20, 2020 · 0 comments

Comments

@donmccurdy
Copy link

@donmccurdy donmccurdy commented Jul 20, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.