summaryrefslogtreecommitdiff
path: root/bdftopcf.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-04 22:29:59 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-22 22:13:20 -0800
commitcf81381eac18f1a1f894fd31f2e4def1fbf7d027 (patch)
treeaf2020d03bcd537c9aace8aadcec7662c5e542f8 /bdftopcf.c
parent2f5ac9eabfc9609bce3aa420a64f29279e626e95 (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 'bdftopcf.c')
-rw-r--r--bdftopcf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bdftopcf.c b/bdftopcf.c
index 1b24aa1..2208fee 100644
--- a/bdftopcf.c
+++ b/bdftopcf.c
@@ -145,6 +145,8 @@ main(int argc, char *argv[])
else {
if (input_name) {
usage:
+ fprintf(stderr, "%s: invalid option '%s'\n",
+ program_name, argv[0]);
fprintf(stderr,
"usage: %s [-p#] [-u#] [-m] [-l] [-M] [-L] [-t] [-i] [-o pcf file] [bdf file]\n"
" where # for -p is 1, 2, 4, or 8\n"