Mercurial > noffle
comparison src/noffle.c @ 319:1e595c7ec15f noffle
[svn] * src/noffle.c: Give usage (rather than abort()) if option is unrecognised.
author | bears |
---|---|
date | Fri, 21 Feb 2003 16:02:01 +0000 |
parents | 52ce87d25641 |
children | fd66260b3479 |
comparison
equal
deleted
inserted
replaced
318:9b79433f0976 | 319:1e595c7ec15f |
---|---|
8 not as server. If noffle runs as server, locking is performed while | 8 not as server. If noffle runs as server, locking is performed while |
9 executing NNTP commands, but temporarily released if no new command is | 9 executing NNTP commands, but temporarily released if no new command is |
10 received for some seconds (to allow multiple clients connect at the same | 10 received for some seconds (to allow multiple clients connect at the same |
11 time). | 11 time). |
12 | 12 |
13 $Id: noffle.c 440 2003-02-17 09:18:12Z godisch $ | 13 $Id: noffle.c 454 2003-02-21 16:02:01Z bears $ |
14 */ | 14 */ |
15 | 15 |
16 #if HAVE_CONFIG_H | 16 #if HAVE_CONFIG_H |
17 #include <config.h> | 17 #include <config.h> |
18 #endif | 18 #endif |
909 | 909 |
910 /* | 910 /* |
911 If they asked for help, give it before there's a possibility | 911 If they asked for help, give it before there's a possibility |
912 we could fail on init. | 912 we could fail on init. |
913 */ | 913 */ |
914 if ( c == 'h' ) | 914 if ( c == 'h' || c == -1 ) |
915 { | 915 { |
916 printUsage(); | 916 printUsage(); |
917 return EXIT_SUCCESS; | 917 return EXIT_SUCCESS; |
918 } | 918 } |
919 | 919 |