summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appres.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/appres.c b/appres.c
index 2f43d2d..fad870f 100644
--- a/appres.c
+++ b/appres.c
@@ -156,8 +156,11 @@ main (int argc, char *argv[])
printf("%s\n", PACKAGE_STRING);
exit(0);
}
- else if (argv[i][0] == '-')
+ else if (argv[i][0] == '-') {
+ fprintf(stderr, "%s: unrecognized option '%s'\n",
+ ProgramName, argv[i]);
usage();
+ }
else if (!cname)
cname = argv[i];
else if (!iname)