From b1aa376919f5d5adb5747be5f46703032f639c98 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 04 Jul 2007 13:55:13 +0000
Subject: [PATCH] In the case where the user asked for the usage of the setup, uninstall or upgrade CLI, we were returning an error code systematically (the error code corresponding to an error in the data provided by the user).   With this modifications when the user asks for the usage explicitly we return an error code 0.  In addition to that, when the usage is asked explicitly in the command line  for the usage it is written to the standard output.  When we display the usage because of an error on the data provided by the user the usage is displayed in the error output.

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

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallLauncher.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallLauncher.java
index 5e0f4d3..535f947 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallLauncher.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallLauncher.java
@@ -127,7 +127,7 @@
   /**
    * {@inheritDoc}
    */
-  protected void printUsage() {
+  protected void printUsage(boolean toStdErr) {
     ArgumentParser argParser = new ArgumentParser(getClass().getName(),
         getI18n().getMsg("uninstall-launcher-usage-description"), false);
     BooleanArgument cli;
@@ -155,7 +155,7 @@
       argParser.setUsageArgument(showUsage);
 
       String msg = argParser.getUsage();
-      printUsage(msg);
+      printUsage(msg, toStdErr);
     }
     catch (Throwable t)
     {

--
Gitblit v1.10.0