Represents a function that can process a List of CommandLine objects resulting from successfully plain #parse(String...) parsing the command line arguments. This is a functional interface w
| 1594 | * @deprecated Use {@link IExecutionStrategy} instead. |
| 1595 | * @since 2.0 */ |
| 1596 | @Deprecated public interface IParseResultHandler { |
| 1597 | /** Processes a List of {@code CommandLine} objects resulting from successfully |
| 1598 | * {@linkplain #parse(String...) parsing} the command line arguments and optionally returns a list of results. |
| 1599 | * @param parsedCommands the {@code CommandLine} objects that resulted from successfully parsing the command line arguments |
| 1600 | * @param out the {@code PrintStream} to print help to if requested |
| 1601 | * @param ansi for printing help messages using ANSI styles and colors |
| 1602 | * @return a list of results, or an empty list if there are no results |
| 1603 | * @throws ParameterException if a help command was invoked for an unknown subcommand. Any {@code ParameterExceptions} |
| 1604 | * thrown from this method are treated as if this exception was thrown during parsing and passed to the {@link IExceptionHandler} |
| 1605 | * @throws ExecutionException if a problem occurred while processing the parse results; use |
| 1606 | * {@link ExecutionException#getCommandLine()} to get the command or subcommand where processing failed |
| 1607 | */ |
| 1608 | List<Object> handleParseResult(List<CommandLine> parsedCommands, PrintStream out, Help.Ansi ansi) throws ExecutionException; |
| 1609 | } |
| 1610 | |
| 1611 | /** |
| 1612 | * Represents a function that can process the {@code ParseResult} object resulting from successfully |
no outgoing calls
no test coverage detected
searching dependent graphs…