From 66ad41503e32e26e11405b497a9592d98e2d05a0 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 29 Aug 2007 17:54:56 +0000
Subject: [PATCH] Move the no option constant definition to ToolConstants. Refactor some code and put it in CliApplicationHelper. Fix some minor bugs in the output of the command-lines.

---
 opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java b/opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java
index bb63ea4..251a429 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java
+++ b/opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java
@@ -54,7 +54,6 @@
 import org.opends.server.admin.RelationDefinition;
 import org.opends.server.admin.Tag;
 import org.opends.server.admin.client.ManagedObjectDecodingException;
-import org.opends.server.admin.client.cli.SecureConnectionCliParser;
 import org.opends.server.loggers.debug.DebugTracer;
 import org.opends.server.tools.ClientException;
 import org.opends.server.types.DebugLogLevel;
@@ -473,18 +472,18 @@
           INFO_DESCRIPTION_VERBOSE.get());
 
       quietArgument = new BooleanArgument(
-          SecureConnectionCliParser.QUIET_OPTION_LONG,
-          SecureConnectionCliParser.QUIET_OPTION_SHORT,
-          SecureConnectionCliParser.QUIET_OPTION_LONG, INFO_DESCRIPTION_QUIET
-              .get());
+          OPTION_LONG_QUIET,
+          OPTION_SHORT_QUIET,
+          OPTION_LONG_QUIET,
+          INFO_DESCRIPTION_QUIET.get());
 
       scriptFriendlyArgument = new BooleanArgument("script-friendly", 's',
           "script-friendly", INFO_DESCRIPTION_SCRIPT_FRIENDLY.get());
 
       noPromptArgument = new BooleanArgument(
-          SecureConnectionCliParser.NO_PROMPT_OPTION_LONG,
-          SecureConnectionCliParser.NO_PROMPT_OPTION_SHORT,
-          SecureConnectionCliParser.NO_PROMPT_OPTION_LONG,
+          OPTION_LONG_NO_PROMPT,
+          OPTION_SHORT_NO_PROMPT,
+          OPTION_LONG_NO_PROMPT,
           INFO_DESCRIPTION_NO_PROMPT.get());
 
       showUsageArgument = new BooleanArgument("showUsage", OPTION_SHORT_HELP,

--
Gitblit v1.10.0