[PATCH:bdftopcf 02/17] Print which option was in error along with usage message

Alan Coopersmith alan.coopersmith at oracle.com
Fri Nov 15 18:38:31 PST 2013


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 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"
-- 
1.7.9.2



More information about the xorg-devel mailing list