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 '?'.
| | |
| | | { |
| | | 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 |