Skip to content

make help subcommand order last (first) #3694

Answered by epage
RustyJoeM asked this question in Q&A
Discussion options

You must be logged in to vote

You have two routes for resolving this

  1. Add #[clap(setting = clap::AppSettings::DeriveDisplayOrder)] to your Parser and all commands will be in the order you define them rather than sorted. help will be last
  2. Add a Help command and set its display_order. Since auto help hasn't been disabled, we will still apply the default help policy to this command, you are just overriding the UX of it

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RustyJoeM
Comment options

@epage
Comment options

Answer selected by RustyJoeM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants