Commit 6a7a2122 authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Dridi Boukelmoune

Print usage on unknown or missing arguments

This seems to be the de-facto way to handle such cases.
Fixes #2608.
parent b0371af3
......@@ -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