Skip to content

Better support chaining multiple enums for subcommands without arguments #2004

Answered by CreepySkeleton
leotaku asked this question in Q&A
Discussion options

You must be logged in to vote

So would it maybe be possible, or even desirable, for clap to automatically behave as if AppSettings::SubcommandRequiredElseHelp was set when Clap is derived for an enum value?

And we actually do that so long as the subcommand in question isn't optional. This is a bug, could you please file an issue?

Replies: 1 comment 2 replies

Comment options

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

@CreepySkeleton
Comment options

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