Skip to content

Commit

Permalink
fix(Help Subcommand): fixes a bug where the help subcommand couldn't …
Browse files Browse the repository at this point in the history
…be overriden

Closes #787
  • Loading branch information
kbknapp committed Dec 31, 2016
1 parent 85ea578 commit d34ec3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit d34ec3e

Please sign in to comment.