Update --depth help messages

Co-Authored-By: jorpic <jorpic@gmail.com>
This commit is contained in:
Pierre Peltier 2018-12-27 14:36:18 +03:00
parent c74b5d619e
commit 92af678167
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ pub fn build() -> App<'static, 'static> {
Arg::with_name("depth") Arg::with_name("depth")
.long("depth") .long("depth")
.takes_value(true) .takes_value(true)
.value_name("NUM") .value_name("num")
.help("Stop recursing into directories after reaching specified depth"), .help("Stop recursing into directories after reaching specified depth"),
) )
.arg( .arg(

View file

@ -40,7 +40,7 @@ impl Flags {
Ok(val) => val, Ok(val) => val,
Err(_) => { Err(_) => {
return Err(Error::with_description( return Err(Error::with_description(
"The argument '--depth' requires a valid number", "The argument '--depth' requires a valid positive number",
ErrorKind::ValueValidation, ErrorKind::ValueValidation,
)) ))
} }