forked from clap-rs/clap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(derive): Allow subcommands to directly nest in subcommands
`structopt` originally allowed ``` pub enum Opt { Daemon(DaemonCommand), } pub enum DaemonCommand { Start, Stop, } ``` This was partially broken in clap-rs#1681 where `$ cmd daemon start` works but `cmd daemon`, panics. Originally, `structopt` relied on exposing the implementation details of a derived type by providing a `is_subcommand` option, so we'd know whether to provide `SubcommandRequiredElseHelp` or not. This was removed in clap-rs#1681 Fixes clap-rs#2005
- Loading branch information
Showing
3 changed files
with
169 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters