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