gluon-neighbour-info: exit on unknown parameters
This commit is contained in:
parent
7dec8ebf87
commit
e9e1e2d18a
@ -201,7 +201,8 @@ int main(int argc, char **argv) {
|
||||
exit(EXIT_SUCCESS);
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Invalid parameter %c ignored.\n", c);
|
||||
fprintf(stderr, "Invalid parameter %c\n", optopt);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (request_string == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user