diff options
Diffstat (limited to 'src/cliargs.rs')
| -rw-r--r-- | src/cliargs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cliargs.rs b/src/cliargs.rs index 1b03019..0a1c0b5 100644 --- a/src/cliargs.rs +++ b/src/cliargs.rs @@ -24,7 +24,7 @@ use std::path::PathBuf; use walkdir::WalkDir; // struct for CLIArgs -#[derive(Debug, Default)] +#[derive(Debug, Default, Clone)] pub struct CLIArgs { pub helparg: bool, pub versionarg: bool, @@ -64,8 +64,8 @@ pub fn parse_files(args: &mut CLIArgs, pos_arg: OsString) { } } else { println!( - "{} {}", - "The positional argument is neither a valid file, nor a path:" + "{}\n{}", + "The positional argument is neither a valid file, nor a directory:" .red() .bold(), path.as_os_str().to_string_lossy().bright_red().italic() |
