Added usage display on error.

svn:r36
This commit is contained in:
Bruce Montrose 2002-07-10 12:37:49 +00:00
parent bb01f59de9
commit 6a58057a6e

View File

@ -8,6 +8,9 @@
/* /*
* Changes : * Changes :
* $Log$ * $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 * Revision 1.5 2002/07/09 19:51:41 montrose
* Miscellaneous bug fixes / activated "make check" for src/or * Miscellaneous bug fixes / activated "make check" for src/or
* *
@ -128,6 +131,7 @@ RETURN VALUE: 0 on success, non-zero on error
code = 0; code = 0;
break; break;
default: default:
poptPrintUsage(optCon, stderr, 0);
fprintf(stderr, "%s: %s\n", poptBadOption(optCon, POPT_BADOPTION_NOALIAS), poptStrerror(code)); fprintf(stderr, "%s: %s\n", poptBadOption(optCon, POPT_BADOPTION_NOALIAS), poptStrerror(code));
break; break;
} }