From 61cfba9be6d79eb9cea135c86330dfcad9ed29d8 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Wed, 04 Apr 2007 07:46:18 +0000
Subject: [PATCH] Fix CLI consistency  issues: 1407 1408 1410 1411 1412 1413 1414 1416 1417 1418 1419 1420 1421

---
 opendj-sdk/opends/src/server/org/opends/server/tools/EncodePassword.java |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/EncodePassword.java b/opendj-sdk/opends/src/server/org/opends/server/tools/EncodePassword.java
index d21d452..5bc7759 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/EncodePassword.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/EncodePassword.java
@@ -54,11 +54,11 @@
 import org.opends.server.util.args.FileBasedArgument;
 import org.opends.server.util.args.StringArgument;
 
-import static org.opends.server.config.ConfigConstants.*;
 import static org.opends.server.messages.MessageHandler.*;
 import static org.opends.server.messages.ToolMessages.*;
 import static org.opends.server.util.ServerConstants.*;
 import static org.opends.server.util.StaticUtils.*;
+import static org.opends.server.tools.ToolConstants.*;
 
 
 
@@ -178,7 +178,7 @@
 
 
       clearPasswordFile =
-           new FileBasedArgument("clearpwfile", 'F', "clearPasswordFile", false,
+           new FileBasedArgument("clearpwfile", 'f', "clearPasswordFile", false,
                                  false, "{filename}", null, null,
                                  MSGID_ENCPW_DESCRIPTION_CLEAR_PW_FILE);
       argParser.addArgument(clearPasswordFile);
@@ -198,15 +198,17 @@
       argParser.addArgument(encodedPasswordFile);
 
 
-      configClass = new StringArgument("configclass", 'C', "configClass",
-                                       true, false, true, "{configClass}",
+      configClass = new StringArgument("configclass", OPTION_SHORT_CONFIG_CLASS,
+                                       OPTION_LONG_CONFIG_CLASS,
+                                       true, false, true,
+                                       OPTION_VALUE_CONFIG_CLASS,
                                        ConfigFileHandler.class.getName(), null,
                                        MSGID_ENCPW_DESCRIPTION_CONFIG_CLASS);
       configClass.setHidden(true);
       argParser.addArgument(configClass);
 
 
-      configFile = new StringArgument("configfile", 'f', "configFile",
+      configFile = new StringArgument("configfile", 'F', "configFile",
                                       true, false, true, "{configFile}", null,
                                       null,
                                       MSGID_ENCPW_DESCRIPTION_CONFIG_FILE);
@@ -233,7 +235,8 @@
       argParser.addArgument(useCompareResultCode);
 
 
-      showUsage = new BooleanArgument("usage", 'H', "help",
+      showUsage = new BooleanArgument("usage", OPTION_SHORT_HELP,
+                                      OPTION_LONG_HELP,
                                       MSGID_ENCPW_DESCRIPTION_USAGE);
       argParser.addArgument(showUsage);
       argParser.setUsageArgument(showUsage, out);

--
Gitblit v1.10.0