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

Allow custom ordering of args and subcommands in help message #442

Closed
kbknapp opened this issue Mar 9, 2016 · 1 comment
Closed

Allow custom ordering of args and subcommands in help message #442

kbknapp opened this issue Mar 9, 2016 · 1 comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-enhancement Category: Raise on the bar on expectations

Comments

@kbknapp
Copy link
Member

kbknapp commented Mar 9, 2016

I'm imagining adding something like a display_order (or whatever it gets called) method which sets the display order. Items with the same order will be listed alphabetically and the default will be something like 999 so the custom orders appear first and have a low probability for being accidentally mixed in with defaults. This would also allow some overlap so that maintenance should be low.

This should help when there are arguments or subcommands you'd like to highlight or that are most frequently used and you don't want to overwrite the entire help message by hand.

Such as something like is discussed in multirust-rs

@kbknapp kbknapp added C-enhancement Category: Raise on the bar on expectations C: args A-help Area: documentation, including docs.rs, readme, examples, etc... labels Mar 9, 2016
@kbknapp
Copy link
Member Author

kbknapp commented Mar 9, 2016

Implemented by #443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-enhancement Category: Raise on the bar on expectations
Projects
None yet
Development

No branches or pull requests

1 participant