mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
cp: better error message for target-directory
This commit is contained in:
parent
efd627bb20
commit
979909e371
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ pub fn uu_app<'a>() -> App<'a> {
|
||||||
if Path::new(s).is_dir() {
|
if Path::new(s).is_dir() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
Err("must specify a directory")
|
Err(format!("'{}' is not a directory", s))
|
||||||
})
|
})
|
||||||
.help("copy all SOURCE arguments into target-directory"))
|
.help("copy all SOURCE arguments into target-directory"))
|
||||||
.arg(Arg::new(options::NO_TARGET_DIRECTORY)
|
.arg(Arg::new(options::NO_TARGET_DIRECTORY)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue