From cf81381eac18f1a1f894fd31f2e4def1fbf7d027 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 4 Nov 2013 22:29:59 -0800 Subject: Print which option was in error along with usage message Signed-off-by: Alan Coopersmith Reviewed-by: Gaetan Nadon --- bdftopcf.c | 2 ++ 1 file changed, 2 insertions(+) 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" -- cgit v1.2.3