Exit immediately upon unsupported options
This commit is contained in:
parent
136367ebf8
commit
4b26da1d86
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user