exit when a non-existent option was found

Este commit está contenido en:
tTh
2023-05-28 10:49:12 +02:00
padre cb599a253c
commit 58e782de84
Se han modificado 2 ficheros con 2 adiciones y 0 borrados

Ver fichero

@@ -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 fichero

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