Skip to content

How to disable the short default help command when using Clap dervie? #5858

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

You must be logged in to vote

You got part of the hint in that output

(call cmd.disable_help_flag(true) to remove the auto-generated --help)

The next is how to use that in the derive API. In the derive reference, it talks about "raw attributes" which will map directly to builder methods. That means you can use #[command(disable_help_flag = true)]. #4090 is where we are exploring improving this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mintsuku
Comment options

Answer selected by mintsuku
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