From ea9b9e87abcf36995a52d271ae34e792653fd696 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 19 Sep 2007 14:40:07 +0000
Subject: [PATCH] After some discussions it has been decided to merge the setup and uninstall commands so that we have the behavior that we had before. So with this changes, in order to work in CLI mode the option --cli must be specified.
---
opends/src/quicksetup/org/opends/quicksetup/Launcher.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/Launcher.java b/opends/src/quicksetup/org/opends/quicksetup/Launcher.java
index f3ad57d..7003761 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Launcher.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Launcher.java
@@ -31,6 +31,7 @@
import org.opends.server.util.args.ArgumentParser;
import static org.opends.messages.QuickSetupMessages.*;
+import static org.opends.server.tools.ToolConstants.*;
import static org.opends.server.util.DynamicConstants.PRINTABLE_VERSION_STRING;
import org.opends.quicksetup.util.Utils;
@@ -171,7 +172,8 @@
protected boolean isCli() {
boolean isCli = false;
for (String arg : args) {
- if (arg.equalsIgnoreCase("--cli") || arg.equalsIgnoreCase("-c")) {
+ if (arg.equalsIgnoreCase("--"+OPTION_LONG_CLI) ||
+ arg.equalsIgnoreCase("-"+OPTION_SHORT_CLI)) {
isCli = true;
break;
}
--
Gitblit v1.10.0