mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-15 00:33:43 -05:00
Update getopt() string and usage()
This commit is contained in:
parent
d5938af750
commit
d93ecb703a
1 changed files with 12 additions and 4 deletions
|
|
@ -57,6 +57,10 @@ static void
|
||||||
usage( char *name )
|
usage( char *name )
|
||||||
{
|
{
|
||||||
fprintf( stderr, "usage: %s [-d ?|debuglevel] [-f configfile] [-p portnumber] [-s sysloglevel]", 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
|
#ifdef LOG_LOCAL4
|
||||||
fprintf( stderr, " [-l sysloguser]" );
|
fprintf( stderr, " [-l sysloguser]" );
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -90,11 +94,15 @@ main( int argc, char **argv )
|
||||||
g_argc = argc;
|
g_argc = argc;
|
||||||
g_argv = argv;
|
g_argv = argv;
|
||||||
|
|
||||||
#ifdef SLAPD_BDB2
|
while ( (i = getopt( argc, argv,
|
||||||
while ( (i = getopt( argc, argv, "d:f:ia:p:s:ut" )) != EOF ) {
|
"d:f:ia:p:s:u"
|
||||||
#else
|
#ifdef LOG_LOCAL4
|
||||||
while ( (i = getopt( argc, argv, "d:f:ia:p:s:u" )) != EOF ) {
|
"l:"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SLAPD_BDB2
|
||||||
|
"t"
|
||||||
|
#endif
|
||||||
|
)) != EOF ) {
|
||||||
switch ( i ) {
|
switch ( i ) {
|
||||||
case 'a': /* bind address */
|
case 'a': /* bind address */
|
||||||
#ifdef HAVE_WINSOCK
|
#ifdef HAVE_WINSOCK
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue