Limit iteration of args to after program name.

This commit is contained in:
2025-09-29 10:52:26 +02:00
parent 2a1adb048e
commit 54e4c065ca

View File

@@ -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(());