gluon-neighbour-info: exit on unknown parameters

This commit is contained in:
Matthias Schiffer 2019-04-21 19:12:29 +02:00
parent 7dec8ebf87
commit e9e1e2d18a
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -201,7 +201,8 @@ int main(int argc, char **argv) {
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
break; break;
default: default:
fprintf(stderr, "Invalid parameter %c ignored.\n", c); fprintf(stderr, "Invalid parameter %c\n", optopt);
exit(EXIT_FAILURE);
} }
if (request_string == NULL) { if (request_string == NULL) {