mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
Added usage display on error.
svn:r36
This commit is contained in:
parent
bb01f59de9
commit
6a58057a6e
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user