From 8ad03d13a55123c75a7c11fd1e4c14971e7296d9 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Mon, 31 May 2010 09:21:28 +0000
Subject: [PATCH] Remove useless local-only argument in dsreplication command

---
 opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java |   28 ++++------------------------
 1 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java b/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java
index ce17fbb..4409a8a 100644
--- a/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java
+++ b/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java
@@ -222,12 +222,6 @@
   private StringArgument baseDNsArg = null;
 
   /**
-   * The argument that specifies if the external initialization will be
-   * performed only on this server.
-   */
-  private BooleanArgument externalInitializationLocalOnlyArg;
-
-  /**
    * The 'quiet' argument.
    */
   BooleanArgument quietArg;
@@ -855,13 +849,13 @@
         INFO_DESCRIPTION_SUBCMD_PRE_EXTERNAL_INITIALIZATION.get(
             POST_EXTERNAL_INITIALIZATION_SUBCMD_NAME));
     secureArgsList.hostNameArg.setDefaultValue(getDefaultHostValue());
-    externalInitializationLocalOnlyArg = new BooleanArgument(
+    BooleanArgument externalInitializationLocalOnlyArg = new BooleanArgument(
         "local-only",
         'l',
         "local-only",
-        INFO_DESCRIPTION_EXTERNAL_INITIALIZATION_LOCAL.get());
-    externalInitializationLocalOnlyArg.setPropertyName(
-        externalInitializationLocalOnlyArg.getLongIdentifier());
+        Message.EMPTY);
+    externalInitializationLocalOnlyArg.setHidden(true);
+
     Argument[] argsToAdd = { secureArgsList.hostNameArg,
         secureArgsList.portArg,
         externalInitializationLocalOnlyArg};
@@ -887,8 +881,6 @@
         INFO_DESCRIPTION_SUBCMD_POST_EXTERNAL_INITIALIZATION.get(
             PRE_EXTERNAL_INITIALIZATION_SUBCMD_NAME));
     secureArgsList.hostNameArg.setDefaultValue(getDefaultHostValue());
-    externalInitializationLocalOnlyArg.setPropertyName(
-        externalInitializationLocalOnlyArg.getLongIdentifier());
     Argument[] argsToAdd = { secureArgsList.hostNameArg,
         secureArgsList.portArg };
     for (int i=0; i<argsToAdd.length; i++)
@@ -1847,18 +1839,6 @@
   }
 
   /**
-   * Tells whether the user specified to apply the pre (or post) external
-   * initialization operations only on the local server.
-   * @return <CODE>true</CODE> if the user specified to apply the pre (or post)
-   * external initialization operations only on the local server and
-   * <CODE>false</CODE> otherwise.
-   */
-  public boolean isExternalInitializationLocalOnly()
-  {
-    return externalInitializationLocalOnlyArg.isPresent();
-  }
-
-  /**
    * Returns whether the command-line subcommand has the name provided
    * or not.
    * @param name the name of the subcommand.

--
Gitblit v1.10.0