org.apache.commons.cli
public interface CommandLineParser
CommandLineParser
interface
can parse a String array according to the {@link Options} specified
and return a {@link CommandLine}.
Method Summary | |
---|---|
CommandLine | parse(Options options, String[] arguments)
Parse the arguments according to the specified options.
|
CommandLine | parse(Options options, String[] arguments, boolean stopAtNonOption)
Parse the arguments according to the specified options.
|
Parameters: options the specified Options arguments the command line arguments
Returns: the list of atomic option and value tokens
Throws: ParseException if there are any problems encountered while parsing the command line tokens.
Parameters: options the specified Options arguments the command line arguments stopAtNonOption specifies whether to continue parsing the arguments if a non option is encountered.
Returns: the list of atomic option and value tokens
Throws: ParseException if there are any problems encountered while parsing the command line tokens.