From e1f1199702abbd0e8c953b872872090a7daad0a0 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 10 Apr 2008 23:07:07 +0000
Subject: [PATCH] Fix for issue 3144 (Uninstall's exit status 0 (success) despite user error and Input tries limit reached (5)) and 3127 ( "uninstall --help" unclear message).

---
 opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java
index 0df5ca9..216fc6b 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java
@@ -354,8 +354,8 @@
       if (getBindPasswordAdmin() == null)
       {
         errors.add(ERR_REPLICATION_NO_ADMINISTRATOR_PASSWORD_PROVIDED.get(
-            secureArgsList.bindPasswordArg.getLongIdentifier(),
-                secureArgsList.bindPasswordFileArg.getLongIdentifier()));
+            "--"+secureArgsList.bindPasswordArg.getLongIdentifier(),
+            "--"+secureArgsList.bindPasswordFileArg.getLongIdentifier()));
       }
     }
 
@@ -591,7 +591,7 @@
     useSecondServerAsSchemaSourceArg = new BooleanArgument(
         "usesecondserverasschemasource", null, "useSecondServerAsSchemaSource",
         INFO_DESCRIPTION_ENABLE_REPLICATION_USE_SECOND_AS_SCHEMA_SOURCE.get(
-            noSchemaReplicationArg.getLongIdentifier()));
+            "--"+noSchemaReplicationArg.getLongIdentifier()));
 
     enableReplicationSubCmd = new SubCommand(this,
         ENABLE_REPLICATION_SUBCMD_NAME,
@@ -2152,7 +2152,7 @@
     if (quietArg.isPresent())
     {
       Message message = ERR_REPLICATION_STATUS_QUIET.get(
-          STATUS_REPLICATION_SUBCMD_NAME, quietArg.getLongIdentifier());
+          STATUS_REPLICATION_SUBCMD_NAME, "--"+quietArg.getLongIdentifier());
       addMessage(buf, message);
     }
   }

--
Gitblit v1.10.0