From: Kurt Zeilenga Date: Fri, 19 Jan 2001 04:55:38 +0000 (+0000) Subject: Move -V to -F so that -V can be used for version information X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1554 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=111dd4cc977b5edac4f7bb94e817e07724c21ca9;p=openldap Move -V to -F so that -V can be used for version information --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 278f3bc589..b9b7affac1 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -50,6 +50,7 @@ usage( const char *s ) " -a deref one of never (default), always, search, or find\n" " -A retrieve attribute names only (no values)\n" " -b basedn base dn for search\n" +" -F prefix URL prefix for files (default: \"" LDAP_FILE_URI_PREFIX ")\n" " -l limit time limit (in seconds) for search\n" " -L print responses in LDIFv1 format\n" " -LL print responses in LDIF format without comments\n" @@ -62,7 +63,6 @@ usage( const char *s ) " -T path write files to directory specified by path (default:\n" " " LDAP_TMPDIR ")\n" " -u include User Friendly entry names in the output\n" -" -V prefix URL prefix for files (default: \"" LDAP_FILE_URI_PREFIX ")\n" " -z limit size limit (in entries) for search\n" "Common options:\n" @@ -184,7 +184,7 @@ main( int argc, char **argv ) prog = (prog = strrchr(argv[0], *LDAP_DIRSEP)) == NULL ? argv[0] : prog + 1; - while (( i = getopt( argc, argv, "Aa:b:f:Ll:S:s:T:tuV:z:" + while (( i = getopt( argc, argv, "Aa:b:F:f:Ll:S:s:T:tuz:" "Cd:D:h:H:IkKMnO:p:P:QR:U:vw:WxX:Y:Z")) != EOF ) { switch( i ) { @@ -216,6 +216,10 @@ main( int argc, char **argv ) } infile = strdup( optarg ); break; + case 'F': /* uri prefix */ + if( urlpre ) free( urlpre ); + urlpre = strdup( optarg ); + break; case 'l': /* time limit */ timelimit = atoi( optarg ); break; @@ -247,10 +251,6 @@ main( int argc, char **argv ) if( tmpdir ) free( tmpdir ); tmpdir = strdup( optarg ); break; - case 'V': /* uri prefix */ - if( urlpre ) free( urlpre ); - urlpre = strdup( optarg ); - break; case 'z': /* size limit */ sizelimit = atoi( optarg ); break;