Complain if unknown argument is passed

This commit is contained in:
Raphael Assenat 2015-10-25 16:29:23 -04:00
parent ab137f2edb
commit 1b65446739
1 changed files with 3 additions and 1 deletions

View File

@ -47,10 +47,12 @@ int main(int argc, char **argv)
case 'h': case 'h':
print_usage(); print_usage();
return 0; return 0;
case 'f': case 'f':
format = optarg; format = optarg;
break; break;
case '?':
fprintf(stderr, "Unknown argument. Try -h\n");
return -1;
} }
} }