Skip to content

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

@remkop

Description

@remkop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions