summaryrefslogtreecommitdiff
path: root/appres.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-22 22:11:00 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-22 22:11:00 -0800
commit129a0b2bd86d5523883128f2357e1cf6a5e00998 (patch)
tree98804cb547228bcb8f0c7c03bc0ff834fac3d40d /appres.c
parentf189c64e3576956816da9f46909437f5523ded3b (diff)
Print which option was in error along with usage message
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'appres.c')
-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)