public List<Object> handleException(ParameterException ex, PrintStream out, Help.Ansi ansi, String... args) { internalHandleParseException(ex, out, ansi, args); return Collections.<Object>emptyList(); }
public List<Object> handleException(ParameterException ex, PrintStream out, Help.Ansi ansi, String... args) { internalHandleParseException(ex, out, ansi, args); return Collections.<Object>emptyList(); }
/** Prints the message of the specified exception, followed by the usage message for the command or subcommand * whose input was invalid, to the stream returned by {@link #err()}. * @param ex the ParameterException describing the problem that occurred while parsing the command line arguments, * and the CommandLine representing the command or subcommand whose input was invalid * @param args the command line arguments that could not be parsed * @return the empty list * @since 3.0 */ public R handleParseException(ParameterException ex, String[] args) { internalHandleParseException(ex, err(), ansi(), args); return returnResultOrExit(null); }
/** Prints the message of the specified exception, followed by the usage message for the command or subcommand * whose input was invalid, to the stream returned by {@link #err()}. * @param ex the ParameterException describing the problem that occurred while parsing the command line arguments, * and the CommandLine representing the command or subcommand whose input was invalid * @param args the command line arguments that could not be parsed * @return the empty list * @since 3.0 */ public R handleParseException(ParameterException ex, String[] args) { internalHandleParseException(ex, err(), ansi(), args); return returnResultOrExit(null); }