| | |
| | | } |
| | | |
| | | private void checkForConflictingArguments() throws ArgumentException { |
| | | throwIfConflictingArgsSet(quietArgument, verboseArgument); |
| | | throwIfConflictingArgsSet(batchArgument, batchFileArgument); |
| | | throwIfArgumentsConflict(quietArgument, verboseArgument); |
| | | throwIfArgumentsConflict(batchArgument, batchFileArgument); |
| | | |
| | | throwIfSetInInteractiveMode(batchFileArgument); |
| | | throwIfSetInInteractiveMode(batchArgument); |
| | | throwIfSetInInteractiveMode(quietArgument); |
| | | |
| | | throwIfConflictingArgsSet(scriptFriendlyArgument, verboseArgument); |
| | | throwIfConflictingArgsSet(noPropertiesFileArgument, propertiesFileArgument); |
| | | throwIfArgumentsConflict(scriptFriendlyArgument, verboseArgument); |
| | | throwIfArgumentsConflict(noPropertiesFileArgument, propertiesFileArgument); |
| | | } |
| | | |
| | | private void throwIfSetInInteractiveMode(Argument arg) throws ArgumentException { |
| | |
| | | } |
| | | } |
| | | |
| | | private void throwIfConflictingArgsSet(Argument arg1, Argument arg2) throws ArgumentException { |
| | | if (arg1.isPresent() && arg2.isPresent()) { |
| | | throw new ArgumentException(ERR_TOOL_CONFLICTING_ARGS.get( |
| | | arg1.getLongIdentifier(), arg2.getLongIdentifier())); |
| | | } |
| | | } |
| | | |
| | | /** Run the top-level interactive console. */ |
| | | private int runInteractiveMode() { |
| | | ConsoleApplication app = this; |