Skip to content

Commit

Permalink
imp(Help): default help subcommand string has been shortened
Browse files Browse the repository at this point in the history
Closes #494
  • Loading branch information
kbknapp committed May 6, 2016
1 parent dae2d93 commit 5b7fe8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ impl<'a, 'b> Parser<'a, 'b> where 'a: 'b {
.iter()
.any(|s| &s.p.meta.name[..] == "help") {
debugln!("Building help");
self.subcommands.push(App::new("help").about("Prints this message or the help message of the given subcommand(s)"));
self.subcommands.push(App::new("help").about("Prints this message or the help of the given subcommand(s)"));
}
}

Expand Down Expand Up @@ -866,11 +866,11 @@ impl<'a, 'b> Parser<'a, 'b> where 'a: 'b {
debug!("Checking if -{} is help or version...", arg);
if let Some(h) = self.help_short {
sdebugln!("Help");
if arg == h { try!(self._help()); }
if arg == h { try!(self._help()); }
}
if let Some(v) = self.version_short {
sdebugln!("Help");
if arg == v { try!(self._version()); }
if arg == v { try!(self._version()); }
}
sdebugln!("Neither");
Ok(())
Expand Down

0 comments on commit 5b7fe8e

Please sign in to comment.