Closed wfchandler closed 1 month ago
do we want to do the same for args?
I don't think it's necessary. Most commands have only a few args, vs the 20+ subcommands we have. Using cargo
as a point of reference, it sorts its subcommands, but the args for commands are not sorted.
By default
clap
will display subcommands in--help
in the order they were added to theCommand
. In our case the order is random due to the split between commands fromprogenitor
and custom commands added manually.Set
display_order(0)
on subcommands to allowclap
to sort them automatically.Before:
After: