mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
cp: better error message for target-directory
This commit is contained in:
committed by
Sylvestre Ledru
parent
efd627bb20
commit
979909e371
+1
-1
@@ -319,7 +319,7 @@ pub fn uu_app<'a>() -> App<'a> {
|
||||
if Path::new(s).is_dir() {
|
||||
return Ok(());
|
||||
}
|
||||
Err("must specify a directory")
|
||||
Err(format!("'{}' is not a directory", s))
|
||||
})
|
||||
.help("copy all SOURCE arguments into target-directory"))
|
||||
.arg(Arg::new(options::NO_TARGET_DIRECTORY)
|
||||
|
||||
Reference in New Issue
Block a user