Skip to content

Commit

Permalink
cp: improve error msg if -r is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Nov 19, 2023
1 parent eb00c19 commit b08c487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/cp/src/copydir.rs
Expand Up @@ -324,7 +324,7 @@ pub(crate) fn copy_directory(
source_in_command_line: bool,
) -> CopyResult<()> {
if !options.recursive {
return Err(format!("omitting directory {}", root.quote()).into());
return Err(format!("-r not specified; omitting directory {}", root.quote()).into());
}

// if no-dereference is enabled and this is a symlink, copy it as a file
Expand Down

0 comments on commit b08c487

Please sign in to comment.