mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 22:22:26 +00:00
Update --depth help messages
Co-Authored-By: jorpic <jorpic@gmail.com>
This commit is contained in:
parent
c74b5d619e
commit
92af678167
2 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||||
|
|
|
@ -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,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue