fix(Help Subcommand): fixes a bug where the help subcommand couldn't be overriden

Closes #787
This commit is contained in:
Kevin K 2016-12-30 21:37:09 -05:00
parent 85ea57835d
commit d34ec3e032
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A

View file

@ -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");
}