Skip to content

Commit cf25fc9

Browse files
committed
fix: remove help
1 parent 6b8975c commit cf25fc9

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

src/main.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,11 @@ fn main() {
55
let args: Vec<_> = env::args().collect();
66

77
if args.len() != 3 {
8-
if args[1].clone() == "help" {
9-
println!("ransom-rs");
10-
println!("Encrypt and decrypt directories/files using Aes cipher. When encrypting, DONOTCRY.txt file will be created and all files will have .donotcry extension.");
11-
println!("Usage: {} <encrypt|decrypt> <folder>", args[0].clone());
12-
return;
13-
} else {
14-
println!(
15-
"Not enough arguments!\nUsage: {} <encrypt|decrypt> <folder>",
16-
args[0].clone()
17-
);
18-
return;
19-
}
8+
println!(
9+
"Not enough arguments!\nUsage: {} <encrypt|decrypt> <folder>",
10+
args[0].clone()
11+
);
12+
return;
2013
}
2114

2215
// Create DONOTCRY.txt file

0 commit comments

Comments
 (0)