Example usage for Java org.apache.commons.cli CommandLine fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
List | getArgList() Retrieve any left-over non-recognized options and arguments |
String[] | getArgs() Retrieve any left-over non-recognized options and arguments |
Object | getOptionObject(String opt) Return the Object type of this Option . |
Object | getOptionObject(char opt) Return the Object type of this Option . |
Properties | getOptionProperties(String opt) Retrieve the map of values associated to the option. |
Option[] | getOptions() Returns an array of the processed Option s. |
String | getOptionValue(String opt) Retrieve the argument, if any, of this option. |
String | getOptionValue(char opt) Retrieve the argument, if any, of this option. |
String | getOptionValue(String opt, String defaultValue) Retrieve the argument, if any, of an option. |
String | getOptionValue(char opt, String defaultValue) Retrieve the argument, if any, of an option. |
String[] | getOptionValues(String opt) Retrieves the array of values, if any, of an option. |
String[] | getOptionValues(char opt) Retrieves the array of values, if any, of an option. |
Object | getParsedOptionValue(String opt) Return a version of this Option converted to a particular type. |
boolean | hasOption(String opt) Query to see if an option has been set. |
boolean | hasOption(char opt) Query to see if an option has been set. |
Iterator | iterator() Returns an iterator over the Option members of CommandLine. |
String | toString() Returns a string representation of the object. |