diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-11-22 22:11:00 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-11-22 22:11:00 -0800 |
commit | 129a0b2bd86d5523883128f2357e1cf6a5e00998 (patch) | |
tree | 98804cb547228bcb8f0c7c03bc0ff834fac3d40d /appres.c | |
parent | f189c64e3576956816da9f46909437f5523ded3b (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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |