aboutsummaryrefslogtreecommitdiff
path: root/src/cliargs.rs
diff options
context:
space:
mode:
authorlukeflo2024-11-23 00:49:00 +0100
committerlukeflo2024-11-23 00:49:00 +0100
commite354e97facdf61abb20a06f5bae2bac5e86c2d62 (patch)
treece3f15e72289f25f8c4a06fb5f5b891d3a643f60 /src/cliargs.rs
parent53679da34cd7fe84aaac2a15f936e1450de7c125 (diff)
downloadbibiman-e354e97facdf61abb20a06f5bae2bac5e86c2d62.tar.gz
bibiman-e354e97facdf61abb20a06f5bae2bac5e86c2d62.zip
implement needed dep injection of cli args
Diffstat (limited to 'src/cliargs.rs')
-rw-r--r--src/cliargs.rs6
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()