Skip to content

Auto-sort commands #206

Open
Open
@peterbe

Description

@peterbe

Is your feature request related to a problem? Please describe.

We keep adding .command("foo").argument("...").action("...") to the bottom of the program.
Would be nice if --help could sort all the commands alphabetically.

Describe the solution you'd like
program.help({sort: 'alphabetically'}) perhaps

Describe alternatives you've considered

Manually re-arrange the blocks of .command("foo").argument("...").action("...").

Additional context
Screen Shot 2021-04-26 at 11 23 30 AM

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

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions