From 68d1cc39007696bf12d0844eba88ea7ac81d8786 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 29 Aug 2007 11:50:00 +0000
Subject: [PATCH] Improve the status command-line interaction by asking the user for the BIndDN to use when this was not provided. Before asking to use SSL or startTLS check that they can actually be used.
---
opends/src/guitools/org/opends/guitools/statuspanel/StatusCliArgumentParser.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/statuspanel/StatusCliParser.java b/opends/src/guitools/org/opends/guitools/statuspanel/StatusCliArgumentParser.java
similarity index 92%
rename from opends/src/guitools/org/opends/guitools/statuspanel/StatusCliParser.java
rename to opends/src/guitools/org/opends/guitools/statuspanel/StatusCliArgumentParser.java
index 2cacc19..ee8e7f2 100644
--- a/opends/src/guitools/org/opends/guitools/statuspanel/StatusCliParser.java
+++ b/opends/src/guitools/org/opends/guitools/statuspanel/StatusCliArgumentParser.java
@@ -34,6 +34,7 @@
import java.util.ArrayList;
import org.opends.server.admin.client.cli.SecureConnectionCliParser;
+import org.opends.server.tools.ToolConstants;
import org.opends.server.util.args.Argument;
import org.opends.server.util.args.ArgumentException;
import org.opends.server.util.args.BooleanArgument;
@@ -43,7 +44,7 @@
* line.
*
*/
-public class StatusCliParser extends SecureConnectionCliParser
+public class StatusCliArgumentParser extends SecureConnectionCliParser
{
private BooleanArgument noPromptArg;
@@ -55,7 +56,7 @@
* be invoked to launch the program with which this
* argument parser is associated.
*/
- public StatusCliParser(String mainClassName)
+ public StatusCliArgumentParser(String mainClassName)
{
super(mainClassName, INFO_STATUS_CLI_USAGE_DESCRIPTION.get(), false);
}
@@ -78,9 +79,9 @@
defaultArgs.remove(hostNameArg);
defaultArgs.remove(verboseArg);
noPromptArg = new BooleanArgument(
- NO_PROMPT_OPTION_LONG,
- NO_PROMPT_OPTION_SHORT,
- NO_PROMPT_OPTION_LONG,
+ ToolConstants.OPTION_LONG_NO_PROMPT,
+ ToolConstants.OPTION_SHORT_NO_PROMPT,
+ ToolConstants.OPTION_LONG_NO_PROMPT,
INFO_DESCRIPTION_NO_PROMPT.get());
defaultArgs.add(0, noPromptArg);
initializeGlobalArguments(defaultArgs);
--
Gitblit v1.10.0