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;
|
break;
|
||||||
case 'v': verbosity++;
|
case 'v': verbosity++;
|
||||||
break;
|
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 'S': sort = atoi(optarg); break;
|
||||||
case 'v': verbosity++; break;
|
case 'v': verbosity++; break;
|
||||||
case 'n': negative = 1; break;
|
case 'n': negative = 1; break;
|
||||||
|
default: exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user