Package picocli

Interface CommandLine.IParseResultHandler

    • Method Detail

      • handleParseResult

        java.util.List<java.lang.Object> handleParseResult​(java.util.List<CommandLine> parsedCommands,
                                                           java.io.PrintStream out,
                                                           CommandLine.Help.Ansi ansi)
                                                    throws CommandLine.ExecutionException
        Deprecated.
        Processes a List of CommandLine objects resulting from successfully parsing the command line arguments and optionally returns a list of results.
        Parameters:
        parsedCommands - the CommandLine objects that resulted from successfully parsing the command line arguments
        out - the PrintStream to print help to if requested
        ansi - for printing help messages using ANSI styles and colors
        Returns:
        a list of results, or an empty list if there are no results
        Throws:
        CommandLine.ParameterException - if a help command was invoked for an unknown subcommand. Any ParameterExceptions thrown from this method are treated as if this exception was thrown during parsing and passed to the CommandLine.IExceptionHandler
        CommandLine.ExecutionException - if a problem occurred while processing the parse results; use CommandLine.ExecutionException.getCommandLine() to get the command or subcommand where processing failed