From 2e73b624c94edfa21b44397b5c45d4d4d845422b Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 30 Aug 2007 13:49:23 +0000
Subject: [PATCH] Make the --advanced dsconfig option a global option so that it is available to the global interactive mode.
---
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandler.java | 51 ---------------------------------------------------
1 files changed, 0 insertions(+), 51 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandler.java b/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandler.java
index 61aff03..706f806 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandler.java
@@ -531,11 +531,6 @@
public static final int MULTI_COLUMN_THRESHOLD = 8;
/**
- * The value for the long option advanced.
- */
- private static final String OPTION_DSCFG_LONG_ADVANCED = "advanced";
-
- /**
* The value for the long option property.
*/
private static final String OPTION_DSCFG_LONG_PROPERTY = "property";
@@ -556,11 +551,6 @@
private static final String OPTION_DSCFG_LONG_UNIT_TIME = "unit-time";
/**
- * The value for the short option advanced.
- */
- private static final Character OPTION_DSCFG_SHORT_ADVANCED = null;
-
- /**
* The value for the short option property.
*/
private static final Character OPTION_DSCFG_SHORT_PROPERTY = null;
@@ -580,9 +570,6 @@
*/
private static final char OPTION_DSCFG_SHORT_UNIT_TIME = 'M';
- // The argument which should be used to request advanced mode.
- private BooleanArgument advancedModeArgument;
-
// The argument which should be used to specify zero or more
// property names.
private StringArgument propertyArgument;
@@ -935,22 +922,6 @@
/**
- * Determines whether the user requested advanced mode.
- *
- * @return Returns <code>true</code> if the user requested
- * advanced mode.
- */
- protected final boolean isAdvancedMode() {
- if (advancedModeArgument != null) {
- return advancedModeArgument.isPresent();
- } else {
- return false;
- }
- }
-
-
-
- /**
* Determines whether the user requested record-mode.
*
* @return Returns <code>true</code> if the user requested
@@ -1062,28 +1033,6 @@
/**
- * Registers the advanced mode argument with the sub-command.
- *
- * @param subCommand
- * The sub-command.
- * @param description
- * The usage description message to be used for the
- * argument.
- * @throws ArgumentException
- * If the advanced mode argument could not be registered.
- */
- protected final void registerAdvancedModeArgument(SubCommand subCommand,
- Message description)
- throws ArgumentException
- {
- this.advancedModeArgument = new BooleanArgument(OPTION_DSCFG_LONG_ADVANCED,
- OPTION_DSCFG_SHORT_ADVANCED, OPTION_DSCFG_LONG_ADVANCED, description);
- subCommand.addArgument(advancedModeArgument);
- }
-
-
-
- /**
* Registers the property name argument with the sub-command.
*
* @param subCommand
--
Gitblit v1.10.0