CommandLine.RunAll
, CommandLine.RunFirst
, CommandLine.RunLast
public static interface CommandLine.IParseResultHandler
CommandLine
objects 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 CommandLine::parseWithHandler
methods to take some next step after the command line was successfully parsed.
CommandLine.RunFirst
,
CommandLine.RunLast
,
CommandLine.RunAll
Modifier and Type | Method | Description |
---|---|---|
List<Object> |
handleParseResult(List<CommandLine> parsedCommands,
PrintStream out,
CommandLine.Help.Ansi ansi) |
Processes a List of
CommandLine objects resulting from successfully
parsing the command line arguments and optionally returns a list of results. |
List<Object> handleParseResult(List<CommandLine> parsedCommands, PrintStream out, CommandLine.Help.Ansi ansi) throws CommandLine.ExecutionException
CommandLine
objects resulting from successfully
parsing the command line arguments and optionally returns a list of results.parsedCommands
- the CommandLine
objects that resulted from successfully parsing the command line argumentsout
- the PrintStream
to print help to if requestedansi
- for printing help messages using ANSI styles and colorsCommandLine.ExecutionException
- if a problem occurred while processing the parse results; use
CommandLine.ExecutionException.getCommandLine()
to get the command or subcommand where processing failedCopyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.