mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
fix(Help Subcommand): fixes a bug where the help subcommand couldn't be overriden
Closes #787
This commit is contained in:
parent
85ea57835d
commit
d34ec3e032
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ impl<'a, 'b> Parser<'a, 'b>
|
|||
debug!("Parser::add_subcommand: Is help...");
|
||||
if subcmd.p.meta.name == "help" {
|
||||
sdebugln!("Yes");
|
||||
self.settings.set(AppSettings::NeedsSubcommandHelp);
|
||||
self.settings.unset(AppSettings::NeedsSubcommandHelp);
|
||||
} else {
|
||||
sdebugln!("No");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue