jewelcli/src/main/java/com/lexicalscope/jewel/cli/CliFactory.java
public static <O> O parseArgumentsUsingInstance(final O options, final String... arguments)
            throws ArgumentValidationException, InvalidOptionSpecificationException
    {
        return createCliUsingInstance(options).parseArguments(arguments);
    }
public static <O> O parseArgumentsUsingInstance(final O options, final String... arguments)
            throws ArgumentValidationException, InvalidOptionSpecificationException
    {
        return createCliUsingInstance(options).parseArguments(arguments);
    }
public static < O > O parseArgumentsUsingInstance ( final O options , final String ... arguments ) throws ArgumentValidationException , InvalidOptionSpecificationException { return createCliUsingInstance ( options ) . parseArguments ( arguments ) ; }
Parse arguments from an annotated class instance

@param <O>
The type of the class 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
Parse arguments from an annotated class instance