diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-11-05 22:48:02 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-11-22 22:29:12 -0800 |
commit | e7694580ad51740e1854a6678fb68c9edce2f37c (patch) | |
tree | 9cd4b4b0dfc1b9a2c3038745181efd39115fca7b | |
parent | f557d6258105ac2717093aebfd2fcbcb16730593 (diff) |
Print error and usage on invalid arg, instead of ignoring it
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | fstobdf.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -109,6 +109,11 @@ main(int argc, char *argv[]) printf("%s\n", PACKAGE_STRING); exit(0); } + else { + fprintf(stderr, "%s: unrecognized option '%s'\n", + argv[0], argv[i]); + usage(argv[0], NULL); + } } if (fontName == NULL) |