@Deprecated public static interface CommandLine.IParseResultHandler
CommandLineobjects resulting from successfully parsing the command line arguments. This is a functional interface whose functional method is
handleParseResult(List, PrintStream, CommandLine.Help.Ansi).
Implementations of this functions can be passed to the
methods to take some next step after the command line was successfully parsed.
|Modifier and Type||Method and Description|
Processes a List of
java.util.List<java.lang.Object> handleParseResult(java.util.List<CommandLine> parsedCommands, java.io.PrintStream out, CommandLine.Help.Ansi ansi) throws CommandLine.ExecutionException
CommandLineobjects resulting from successfully parsing the command line arguments and optionally returns a list of results.
CommandLineobjects that resulted from successfully parsing the command line arguments
PrintStreamto print help to if requested
ansi- for printing help messages using ANSI styles and colors
CommandLine.ParameterException- if a help command was invoked for an unknown subcommand. Any
ParameterExceptionsthrown from this method are treated as if this exception was thrown during parsing and passed to the
CommandLine.ExecutionException- if a problem occurred while processing the parse results; use
CommandLine.ExecutionException.getCommandLine()to get the command or subcommand where processing failed