exit when a non-existent option was found

Esse commit está contido em:
tTh 2023-05-28 10:49:12 +02:00
commit 58e782de84
2 arquivos alterados com 2 adições e 0 exclusões

Ver arquivo

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

Ver arquivo

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