forked from tTh/FloatImg
exit when a non-existent option was found
This commit is contained in:
parent
cb599a253c
commit
58e782de84
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user