From: Hallvard Furuseth Date: Thu, 1 Apr 1999 22:31:24 +0000 (+0000) Subject: Update getopt() string and usage() X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~282 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d93ecb703afbf9d024a5dc74ef4f5c96bb7fcda7;p=openldap Update getopt() string and usage() --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index 0a560c5ca8..6c06c02799 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -57,6 +57,10 @@ static void usage( char *name ) { fprintf( stderr, "usage: %s [-d ?|debuglevel] [-f configfile] [-p portnumber] [-s sysloglevel]", name ); + fprintf( stderr, "\n [-a bind-address] [-i] [-u]" ); +#ifdef SLAPD_BDB2 + fprintf( stderr, " [-t]" ); +#endif #ifdef LOG_LOCAL4 fprintf( stderr, " [-l sysloguser]" ); #endif @@ -90,11 +94,15 @@ main( int argc, char **argv ) g_argc = argc; g_argv = argv; + while ( (i = getopt( argc, argv, + "d:f:ia:p:s:u" +#ifdef LOG_LOCAL4 + "l:" +#endif #ifdef SLAPD_BDB2 - while ( (i = getopt( argc, argv, "d:f:ia:p:s:ut" )) != EOF ) { -#else - while ( (i = getopt( argc, argv, "d:f:ia:p:s:u" )) != EOF ) { + "t" #endif + )) != EOF ) { switch ( i ) { case 'a': /* bind address */ #ifdef HAVE_WINSOCK