| | |
| | | |
| | | import static com.forgerock.opendj.cli.ArgumentConstants.*; |
| | | import static com.forgerock.opendj.cli.Utils.*; |
| | | import static com.forgerock.opendj.cli.CommonArguments.*; |
| | | import static javax.security.auth.callback.TextOutputCallback.*; |
| | | |
| | | import static org.opends.messages.ToolMessages.*; |
| | |
| | | import com.forgerock.opendj.cli.ArgumentException; |
| | | import com.forgerock.opendj.cli.BooleanArgument; |
| | | import com.forgerock.opendj.cli.ClientException; |
| | | import com.forgerock.opendj.cli.CommonArguments; |
| | | import com.forgerock.opendj.cli.ConsoleApplication; |
| | | import com.forgerock.opendj.cli.StringArgument; |
| | | import com.forgerock.opendj.cli.SubCommandArgumentParser; |
| | |
| | | { |
| | | if (!globalArgumentsInitialized) |
| | | { |
| | | configClass = CommonArguments.getConfigClass(ConfigFileHandler.class.getName()); |
| | | configFile = CommonArguments.getConfigFile(); |
| | | noPrompt = CommonArguments.getNoPrompt(); |
| | | verbose = CommonArguments.getVerbose(); |
| | | quietMode = CommonArguments.getQuiet(); |
| | | configClass = configClassArgument(ConfigFileHandler.class.getName()); |
| | | configFile = configFileArgument(); |
| | | noPrompt = noPromptArgument(); |
| | | verbose = verboseArgument(); |
| | | quietMode = quietArgument(); |
| | | ignoreErrors = |
| | | BooleanArgument.builder(OPTION_LONG_IGNORE_ERRORS) |
| | | .description(INFO_UPGRADE_OPTION_IGNORE_ERRORS.get()) |
| | |
| | | BooleanArgument.builder(OPTION_LONG_FORCE_UPGRADE) |
| | | .description(INFO_UPGRADE_OPTION_FORCE.get(OPTION_LONG_NO_PROMPT)) |
| | | .buildArgument(); |
| | | acceptLicense = CommonArguments.getAcceptLicense(); |
| | | showUsageArgument = CommonArguments.getShowUsage(); |
| | | acceptLicense = acceptLicenseArgument(); |
| | | showUsageArgument = showUsageArgument(); |
| | | |
| | | |
| | | // Register the global arguments. |