summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xdriinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xdriinfo.c b/xdriinfo.c
index 865b4bf..9118ea9 100644
--- a/xdriinfo.c
+++ b/xdriinfo.c
@@ -80,11 +80,15 @@ int main (int argc, char *argv[]) {
func = OPTIONS;
argPtr = &funcArg;
} else {
+ fprintf (stderr, "%s: unrecognized argument '%s'\n",
+ argv[0], argv[i]);
printUsage ();
return 1;
}
if (argPtr) {
if (++i == argc) {
+ fprintf (stderr, "%s: '%s' requires an argument\n",
+ argv[0], argv[i-1]);
printUsage ();
return 1;
}