Replies: 1 comment 3 replies
-
We're tracking the customization of the help subcommand at #5815. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Perhaps I'm missing somethimg but I can't seem to find a way to add an alias (
h
) to the auto-generated help subcommand.I've tried adding
disable_help_subcommand(true)
to my subcommand enum and then manually addHelp
to it but it requires me to match the code path and as expected does nothing in return.I'm looking to do something similar to overwriting the generated help flags, in the example below I can add alias or hide the short flag and I get help auto generated by clap:
I'm looking for something like
action = clap::SubcommandAction::SubcmdHelp
so I can maybe do something like:Looking at the code this seems impossible when
disable_help_subcmd
is set?clap/clap_builder/src/parser/parser.rs
Lines 120 to 123 in 4099a33
Beta Was this translation helpful? Give feedback.
All reactions