From 5b7fe8e4161e43ab19e2e5fcf55fbe46791134e9 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Thu, 5 May 2016 21:49:48 -0400 Subject: [PATCH] imp(Help): default help subcommand string has been shortened Closes #494 --- src/app/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/parser.rs b/src/app/parser.rs index 9fe17195..78779776 100644 --- a/src/app/parser.rs +++ b/src/app/parser.rs @@ -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)")); } } @@ -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(())