From ad045ba9e4d87449a7d1af1f4ba3db5e1951c6fa 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. 

---
 opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java
index eb0c187..56dec25 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java
@@ -53,6 +53,7 @@
  */
 public class UninstallerArgumentParser extends SecureConnectionCliParser
 {
+  private BooleanArgument cliArg;
   private BooleanArgument noPromptArg;
   BooleanArgument forceOnErrorArg;
   private BooleanArgument quietArg;
@@ -103,6 +104,12 @@
   throws ArgumentException
   {
     LinkedHashSet<Argument> args = new LinkedHashSet<Argument>();
+    cliArg = new BooleanArgument(
+        OPTION_LONG_CLI,
+        OPTION_SHORT_CLI,
+        OPTION_LONG_CLI,
+        INFO_UNINSTALLDS_DESCRIPTION_CLI.get());
+    args.add(cliArg);
     removeAllArg = new BooleanArgument(
         "remove-all",
         'a',

--
Gitblit v1.10.0