exit when a non-existent option was found

This commit is contained in:
tTh 2023-05-28 10:49:12 +02:00
parent cb599a253c
commit 58e782de84
2 changed files with 2 additions and 0 deletions

View File

@ -229,6 +229,7 @@ while ((opt = getopt(argc, argv, "B:E:F:ghI:LO:T:vw:x:")) != -1) {
break;
case 'v': verbosity++;
break;
default: exit(1);
}
}

View File

@ -274,6 +274,7 @@ while ((opt = getopt(argc, argv, "E:F:hLnS:v")) != -1) {
case 'S': sort = atoi(optarg); break;
case 'v': verbosity++; break;
case 'n': negative = 1; break;
default: exit(1);
}
}