| | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.messages.RuntimeMessages; |
| | | import org.opends.server.core.ConfigurationHandler; |
| | | import org.opends.server.core.DirectoryServer.DirectoryServerVersionHandler; |
| | | import org.opends.server.loggers.JDKLogging; |
| | | import org.opends.server.util.StaticUtils; |
| | |
| | | /** The command-line argument parser. */ |
| | | private final SubCommandArgumentParser parser; |
| | | |
| | | /** The argument which should be used to specify the config class. */ |
| | | private StringArgument configClass; |
| | | /** The argument which should be used to specify the config file. */ |
| | | private StringArgument configFile; |
| | | |
| | |
| | | { |
| | | if (!globalArgumentsInitialized) |
| | | { |
| | | configClass = configClassArgument(ConfigurationHandler.class.getName()); |
| | | configFile = configFileArgument(); |
| | | noPrompt = noPromptArgument(); |
| | | verbose = verboseArgument(); |
| | |
| | | // Register the global arguments. |
| | | parser.addGlobalArgument(showUsageArgument); |
| | | parser.setUsageArgument(showUsageArgument, getOutputStream()); |
| | | parser.addGlobalArgument(configClass); |
| | | parser.addGlobalArgument(configFile); |
| | | parser.addGlobalArgument(noPrompt); |
| | | parser.addGlobalArgument(verbose); |