]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Added new short command line option "-t" as alternative to "--configtest".
authorAlexander Barton <alex@barton.de>
Mon, 29 Dec 2003 14:53:26 +0000 (14:53 +0000)
committerAlexander Barton <alex@barton.de>
Mon, 29 Dec 2003 14:53:26 +0000 (14:53 +0000)
ChangeLog
src/ngircd/ngircd.c

index c9c15c1f4f2ae9b5948112f29f0b1fbb97179fb6..793c22ae1289ca565b32226588e95a68cb12ac51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
 
 ngIRCd CVSHEAD
 
+  - Added short command line option "-t" as alternative to "--configtest".
   - Added optional support for "IDENT" lookups on incoming connections. You
     have to enable this function with the ./configure switch "--with-ident".
     The default is not to do IDENT lookups.
@@ -491,4 +492,4 @@ ngIRCd 0.0.1, 31.12.2001
 
 
 -- 
-$Id: ChangeLog,v 1.220 2003/12/27 13:01:12 alex Exp $
+$Id: ChangeLog,v 1.221 2003/12/29 14:53:26 alex Exp $
index c3a6db8e6ead0288af8e160944dfbcbb1517a9b8..dc16758d9ee2682eef6db96dacae6d4707631e5a 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: ngircd.c,v 1.79 2003/12/27 13:09:24 alex Exp $";
+static char UNUSED id[] = "$Id: ngircd.c,v 1.80 2003/12/29 14:53:26 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -183,6 +183,11 @@ main( int argc, const char *argv[] )
                                        ok = TRUE;
                                }
 #endif
+                               if( argv[i][n] == 't' )
+                               {
+                                       configtest = TRUE;
+                                       ok = TRUE;
+                               }
 
                                if( ! ok )
                                {
@@ -552,7 +557,7 @@ Show_Help( VOID )
 #ifdef SNIFFER
        puts( "  -s, --sniffer      enable network sniffer and display all IRC traffic" );
 #endif
-       puts( "      --configtest   read, validate and display configuration; then exit" );
+       puts( "  -t, --configtest   read, validate and display configuration; then exit" );
        puts( "      --version      output version information and exit" );
        puts( "      --help         display this help and exit" );
 } /* Show_Help */