diff options
author | Bruce Montrose <montrose@itd.nrl.navy.mil> | 2002-07-10 12:37:49 +0000 |
---|---|---|
committer | Bruce Montrose <montrose@itd.nrl.navy.mil> | 2002-07-10 12:37:49 +0000 |
commit | 6a58057a6e19a252cb168f7cfe0e775bcb22aa21 (patch) | |
tree | f8dbafb70d8aaf842a6b6cf57b5dd7cb6670e4b5 /src/or | |
parent | bb01f59de9f38577a80cd14f8f83107999bca506 (diff) | |
download | tor-6a58057a6e19a252cb168f7cfe0e775bcb22aa21.tar tor-6a58057a6e19a252cb168f7cfe0e775bcb22aa21.tar.gz |
Added usage display on error.
svn:r36
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index e70e1a17b..b0283e150 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -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 @@ RETURN VALUE: 0 on success, non-zero on error code = 0; break; default: + poptPrintUsage(optCon, stderr, 0); fprintf(stderr, "%s: %s\n", poptBadOption(optCon, POPT_BADOPTION_NOALIAS), poptStrerror(code)); break; } |