Exit immediately upon unsupported options

This commit is contained in:
Pierre Pronchery 2020-12-08 14:39:55 +01:00
parent 136367ebf8
commit 4b26da1d86
2 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,7 @@ int main(int argc, char * argv[])
/* FIXME implement */ /* FIXME implement */
fprintf(stderr, "%s%c%s", PROGNAME ": -", o, fprintf(stderr, "%s%c%s", PROGNAME ": -", o,
": Not yet implemented\n"); ": Not yet implemented\n");
return 2;
default: default:
return _usage(); return _usage();
} }

View File

@ -235,6 +235,7 @@ int main(int argc, char * argv[])
case 'P': case 'P':
fprintf(stderr, "%s%c%s", PROGNAME ": -", o, fprintf(stderr, "%s%c%s", PROGNAME ": -", o,
": Not yet implemented\n"); ": Not yet implemented\n");
return 2;
default: default:
return _usage(); return _usage();
} }