summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-06-01 23:55:00 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-06-02 00:00:37 -0700
commit30cb700ab15c963a5cbf16cfe6281d5841f59532 (patch)
tree419e9646aeec01c93c0fac106e86561fdb228b72
parent3db5ac8466abe367a0a37efe4289aa6c7886e621 (diff)
Print which option was in error along with usage message
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--ico.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ico.c b/ico.c
index a256cf7..b96188e 100644
--- a/ico.c
+++ b/ico.c
@@ -1274,6 +1274,8 @@ int main(int argc, const char **argv)
exit(1);
}
else { /* unknown arg */
+ fprintf (stderr, "%s: unrecognized argument %s\n\n",
+ ProgramName, *argv);
fprintf (stderr, "usage: %s [options]\n\n%s",
ProgramName, help_message);
exit (1);