[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[or-cvs] Added usage display on error.



Update of /home/or/cvsroot/src/or
In directory moria.seul.org:/tmp/cvs-serv29711/src/or

Modified Files:
	config.c 
Log Message:
Added usage display on error.


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- config.c	9 Jul 2002 19:51:41 -0000	1.5
+++ config.c	10 Jul 2002 12:37:49 -0000	1.6
@@ -8,6 +8,9 @@
 /*
  * Changes :
  * $Log$
+ * Revision 1.6  2002/07/10 12:37:49  montrose
+ * Added usage display on error.
+ *
  * Revision 1.5  2002/07/09 19:51:41  montrose
  * Miscellaneous bug fixes / activated "make check" for src/or
  *
@@ -128,6 +131,7 @@
       code = 0;
       break;
    default:
+      poptPrintUsage(optCon, stderr, 0);
       fprintf(stderr, "%s: %s\n", poptBadOption(optCon, POPT_BADOPTION_NOALIAS), poptStrerror(code));
       break;
    }