From bf2f9b33b1af5fb5b337f7d4f6cc18dc7b0b16e2 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 15 Feb 2008 11:33:09 +0000
Subject: [PATCH] Fix for issue 2960 (uninstall -?  launches graphical interface)

---
 opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallLauncher.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallLauncher.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallLauncher.java
index 723cb0a..24b089d 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallLauncher.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallLauncher.java
@@ -115,8 +115,10 @@
       {
         System.exit(ReturnCode.PRINT_VERSION.getReturnCode());
       }
-      else if (argParser.isUsageArgumentPresent())
+      else if (argParser.usageOrVersionDisplayed())
       {
+        // If there was no problem parsing arguments, this means that the user
+        // asked to display the usage.
         System.exit(ReturnCode.SUCCESSFUL.getReturnCode());
       }
       else

--
Gitblit v1.10.0