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

Add method Help::createDefaultOptionSort to create a Comparator following the command configuration #1089

Closed
remkop opened this issue May 31, 2020 · 0 comments
Labels
theme: usagehelp An issue or change related to the usage help message type: API 🔌
Milestone

Comments

@remkop
Copy link
Owner

remkop commented May 31, 2020

Add method Help::createDefaultOptionSort to create a Comparator following the command configuration:

  • if Command#sortOptions is true, sort by the options short name
  • if @command#sortOptionsis false, and any of the options have a non-default value forOption#order`, then sort by this order attribute
  • otherwise, return null to indicate options should be shown in definition order
@remkop remkop added type: API 🔌 theme: usagehelp An issue or change related to the usage help message labels May 31, 2020
@remkop remkop added this to the 4.4 milestone May 31, 2020
@remkop remkop closed this as completed in e074b4d Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: usagehelp An issue or change related to the usage help message type: API 🔌
Projects
None yet
Development

No branches or pull requests

1 participant