Commit 2ac11639 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Print usage on unknown or missing arguments

This seems to be the de-facto way to handle such cases.
Fixes #2608.
parent cc8f349f
......@@ -488,8 +488,7 @@ main(int argc, char * const *argv)
do {
switch (o) {
case '?':
if (optopt == '?')
usage();
usage();
exit(2);
case 'V':
case 'x':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment