mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
15.33.2008 bf2f9b33b1af5fb5b337f7d4f6cc18dc7b0b16e2
Fix for issue 2960 (uninstall -?  launches graphical interface)

Instead of checking for the presence of the help argument call SubCommandArgumentParser.usageOrVersionDisplayed that actually takes into account the built-in option '?'.
1 files modified
4 ■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/uninstaller/UninstallLauncher.java 4 ●●● patch | view | raw | blame | history
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