Module info.picocli
Package picocli

Interface CommandLine.IParameterExceptionHandler

    • Method Detail

      • handleParseException

        int handleParseException​(CommandLine.ParameterException ex,
                                 String[] args)
                          throws Exception
        Handles a ParameterException that occurred while parsing the command line arguments and returns an exit code suitable for returning from CommandLine.execute(String...).
        Parameters:
        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
        args - the command line arguments that could not be parsed
        Returns:
        an exit code
        Throws:
        Exception