| org.apache.commons.cli.CommandLineParser
All known Subclasses: org.apache.commons.cli.Parser,
CommandLineParser | public interface CommandLineParser (Code) | | A class that implements the CommandLineParser interface
can parse a String array according to the
Options specified
and return a
CommandLine .
author: John Keyes (john at integralsource.com) |
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 Parameters: arguments - the command line arguments Parameters: stopAtNonOption - specifies whether to continue parsing thearguments if a non option is encountered. |
parse | CommandLine parse(Options options, String[] arguments) throws ParseException(Code) | | Parse the arguments according to the specified options.
Parameters: options - the specified Options Parameters: arguments - the command line arguments the list of atomic option and value tokens throws: ParseException - if there are any problems encounteredwhile parsing the command line tokens. |
parse | CommandLine parse(Options options, String[] arguments, boolean stopAtNonOption) throws ParseException(Code) | | Parse the arguments according to the specified options.
Parameters: options - the specified Options Parameters: arguments - the command line arguments Parameters: stopAtNonOption - specifies whether to continue parsing thearguments if a non option is encountered. the list of atomic option and value tokens throws: ParseException - if there are any problems encounteredwhile parsing the command line tokens. |
|
|