Module info.picocli
Package picocli

Interface CommandLine.IExceptionHandler

    • Method Detail

      • handleException

        List<Object> handleException​(CommandLine.ParameterException ex,
                                     PrintStream out,
                                     CommandLine.Help.Ansi ansi,
                                     String... args)
        Handles a ParameterException that occurred while parsing the command line arguments and optionally returns a list of results.
        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
        out - the PrintStream to print help to if requested
        ansi - for printing help messages using ANSI styles and colors
        args - the command line arguments that could not be parsed
        a list of results, or an empty list if there are no results