Fix, truncate should not be valid for slapadd, should be for slapindex.

This commit is contained in:
Howard Chu 2007-11-21 15:40:09 +00:00
parent b8fcecd69b
commit 1ed9b5c3bc

View File

@ -88,7 +88,7 @@ usage( int tool, const char *progname )
break;
case SLAPINDEX:
options = " [-c]\n\t[-g] [-n databasenumber | -b suffix] [attr ...] [-q]\n";
options = " [-c]\n\t[-g] [-n databasenumber | -b suffix] [attr ...] [-q] [-t]\n";
break;
case SLAPTEST:
@ -241,7 +241,7 @@ slap_tool_init(
switch( tool ) {
case SLAPADD:
options = "b:cd:f:F:gj:l:n:o:qsS:tuvw";
options = "b:cd:f:F:gj:l:n:o:qsS:uvw";
break;
case SLAPCAT:
@ -265,7 +265,7 @@ slap_tool_init(
break;
case SLAPINDEX:
options = "b:cd:f:F:gn:o:qv";
options = "b:cd:f:F:gn:o:qtv";
mode |= SLAP_TOOL_READMAIN;
break;