jewelcli/src/main/java/com/lexicalscope/jewel/cli/CliFactory.java
public static <O> O parseArguments(final Class<O> klass, final String... arguments)
            throws ArgumentValidationException, InvalidOptionSpecificationException
    {
        return createCli(klass).parseArguments(arguments);
    }
public static <O> O parseArguments(final Class<O> klass, final String... arguments)
            throws ArgumentValidationException, InvalidOptionSpecificationException
    {
        return createCli(klass).parseArguments(arguments);
    }
Parse arguments from an annotated interface definition

@param <O>
The type of the interface that will be used to present the
arguments
@param klass
The annotated interface definition
@param arguments

@return The parsed arguments

@throws ArgumentValidationException the arguments do not meet the CLI specification
@throws InvalidOptionSpecificationException the CLI specification is not valid