From da284105b607bec381206599791f0b2ea170d81b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 21 Dec 2007 20:50:26 +0000
Subject: [PATCH] Fix for 1862 verbosity options for quicksetup tools

---
 opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java b/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java
index 16939ed..8f1680d 100644
--- a/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java
+++ b/opends/src/guitools/org/opends/guitools/uninstaller/UninstallerArgumentParser.java
@@ -195,7 +195,6 @@
     secureArgsList.adminUidArg.setHidden(false);
     defaultArgs.remove(secureArgsList.hostNameArg);
     defaultArgs.remove(secureArgsList.portArg);
-    defaultArgs.remove(verboseArg);
     UserData uData = new UserData();
     referencedHostNameArg = new StringArgument("referencedHostName",
         ToolConstants.OPTION_SHORT_HOST,
@@ -243,6 +242,17 @@
   }
 
   /**
+   * Tells whether the user specified to have a verbose uninstall or not.
+   * This method must be called after calling parseArguments.
+   * @return <CODE>true</CODE> if the user specified to have a verbose
+   * uninstall and <CODE>false</CODE> otherwise.
+   */
+  public boolean isVerbose()
+  {
+    return verboseArg.isPresent();
+  }
+
+  /**
    * Tells whether the user specified to remove all files.
    * This method must be called after calling parseArguments.
    * @return <CODE>true</CODE> if the user specified to remove all files and

--
Gitblit v1.10.0