Skip to content

Commit

Permalink
Adjust error message when no argument is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykMroczek committed Feb 16, 2024
1 parent 59d9023 commit 1b96ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Options:
fn main() {
let args: Vec<String> = env::args().collect();
if args.len() < 2 {
eprintln!("{}", HELP);
eprintln!("Missing PATHS arguments.\n{}", HELP);
std::process::exit(1);
} else if ["-h", "--help"].contains(&args[1].as_str()) {
println!("{}", HELP);
Expand Down

0 comments on commit 1b96ff8

Please sign in to comment.