diff options
| author | Alexander Barton <alex@barton.de> | 2003-12-29 14:53:26 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2003-12-29 14:53:26 +0000 |
| commit | c9ccb669442726969a096fe03390b058cc088717 (patch) | |
| tree | 560e207c7146eff72c2a533bb15170bdcc699031 /src | |
| parent | cb6279f1020e1818ab3a379f36724ecef7c8d2d0 (diff) | |
| download | ngircd-c9ccb669442726969a096fe03390b058cc088717.tar.gz ngircd-c9ccb669442726969a096fe03390b058cc088717.zip | |
Added new short command line option "-t" as alternative to "--configtest".
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/ngircd.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index c3a6db8e..dc16758d 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -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 */ |