Skip to content
Snippets Groups Projects
Unverified Commit e9e1e2d1 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-neighbour-info: exit on unknown parameters

parent 7dec8ebf
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment