Limit iteration of args to after program name.
This commit is contained in:
@@ -63,7 +63,7 @@ fn main() -> io::Result<()> {
|
||||
process::exit(1);
|
||||
}
|
||||
|
||||
for i in &args {
|
||||
for i in &args[1..args.len()] {
|
||||
if i == "-h" {
|
||||
print_help();
|
||||
return Ok(());
|
||||
|
Reference in New Issue
Block a user