Skip to content

derive: Is there a way to opt out of help subcommands in clap 4? #5450

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

You must be logged in to vote

You can set the disable_help_subcommand raw attribute.

I'm a bit surprised it lists all depths of subcommands when just completing the command. Is that a general behavior in nushell (e.g. does git\t include git stash pop?) or is that a bug in our completer?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@philipahlberg
Comment options

@epage
Comment options

@philipahlberg
Comment options

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