diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-06-01 23:55:00 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-06-02 00:00:37 -0700 |
commit | 30cb700ab15c963a5cbf16cfe6281d5841f59532 (patch) | |
tree | 419e9646aeec01c93c0fac106e86561fdb228b72 | |
parent | 3db5ac8466abe367a0a37efe4289aa6c7886e621 (diff) |
Print which option was in error along with usage message
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | ico.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |