| | |
| | | import static org.opends.server.messages.ToolMessages.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | import static org.opends.server.tools.ToolConstants.*; |
| | | |
| | | |
| | | |
| | |
| | | try |
| | | { |
| | | configClass = |
| | | new StringArgument("configclass", 'C', "configClass", true, false, |
| | | true, "{configClass}", |
| | | new StringArgument("configclass", OPTION_SHORT_CONFIG_CLASS, |
| | | OPTION_LONG_CONFIG_CLASS, true, false, |
| | | true, OPTION_VALUE_CONFIG_CLASS, |
| | | ConfigFileHandler.class.getName(), null, |
| | | MSGID_LDIFEXPORT_DESCRIPTION_CONFIG_CLASS); |
| | | configClass.setHidden(true); |
| | |
| | | |
| | | |
| | | ldifFile = |
| | | new StringArgument("ldiffile", 'l', "ldifFile", true, false, true, |
| | | "{ldifFile}", null, null, |
| | | new StringArgument("ldiffile", OPTION_SHORT_LDIF_FILE, |
| | | OPTION_LONG_LDIF_FILE,true, false, true, |
| | | OPTION_VALUE_LDIF_FILE, null, null, |
| | | MSGID_LDIFEXPORT_DESCRIPTION_LDIF_FILE); |
| | | argParser.addArgument(ldifFile); |
| | | |
| | |
| | | |
| | | |
| | | compressLDIF = |
| | | new BooleanArgument("compressldif", 'c', "compressLDIF", |
| | | new BooleanArgument("compressldif", OPTION_SHORT_COMPRESS, |
| | | OPTION_LONG_COMPRESS, |
| | | MSGID_LDIFEXPORT_DESCRIPTION_COMPRESS_LDIF); |
| | | argParser.addArgument(compressLDIF); |
| | | |
| | |
| | | |
| | | |
| | | displayUsage = |
| | | new BooleanArgument("help", 'H', "help", |
| | | new BooleanArgument("help", OPTION_SHORT_HELP, |
| | | OPTION_LONG_HELP, |
| | | MSGID_LDIFEXPORT_DESCRIPTION_USAGE); |
| | | argParser.addArgument(displayUsage); |
| | | argParser.setUsageArgument(displayUsage); |