X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fngircd.c;h=113cecabf848cda2246ff08c278fd69c7b50edda;hp=4dd9b6a28d9798c1d0978f560503adcc358fc3dd;hb=5fa05dcea805d5db1411148ef3215e7906c88f22;hpb=0903e7763c9d6c56f994829b26f68a58859a9d27 diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index 4dd9b6a2..113cecab 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -9,11 +9,14 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: ngircd.c,v 1.30 2002/03/10 17:45:41 alex Exp $ + * $Id: ngircd.c,v 1.31 2002/03/10 17:50:48 alex Exp $ * * ngircd.c: Hier beginnt alles ;-) * * $Log: ngircd.c,v $ + * Revision 1.31 2002/03/10 17:50:48 alex + * - Handling von "--version" und "--help" nochmal geaendert ... + * * Revision 1.30 2002/03/10 17:45:41 alex * - bei "ngircd --version" werden nun die eincompilierten Pfade angezeigt. * @@ -210,7 +213,7 @@ GLOBAL INT main( INT argc, CONST CHAR *argv[] ) #endif if( strcmp( argv[i], "--version" ) == 0 ) { - Show_Version( ); puts( "" ); + Show_Version( ); exit( 1 ); } } @@ -489,15 +492,16 @@ LOCAL VOID Show_Version( VOID ) puts( "Copyright (c)2001,2002 by Alexander Barton (alex@barton.de).\n" ); puts( "This is free software; see the source for copying conditions. There is NO" ); puts( "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." ); - puts( "\nCompile-time defaults:\n" ); - puts( " - configuration: "CONFIG_FILE ); - puts( " - MOTD file: "MOTD_FILE ); - puts( " - server error log: "ERROR_FILE ); } /* Show_Version */ LOCAL VOID Show_Help( VOID ) { + puts( "Compile-time defaults:\n" ); + puts( " - configuration: "CONFIG_FILE ); + puts( " - MOTD file: "MOTD_FILE ); + puts( " - server error log: "ERROR_FILE"\n" ); + puts( "Run-time options:\n" ); #ifdef DEBUG puts( " -d, --debug log extra debug messages" ); #endif