public class OptionList extends Object
The GNU Lesser General Public License for details.| Modifier and Type | Field and Description |
|---|---|
private Map<String,Option> |
longOptions |
private Map<String,Option> |
shortOptions |
| Constructor and Description |
|---|
OptionList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Option option)
Adds an Option to the end of this OptionList.
|
List<Option> |
getLongOptions(String key)
Get a list of Options that match the Option's long name.
|
List<Option> |
getOptions(String key)
Get a list of Options that match the Option's short or long name.
|
Option |
getShortOption(char key)
Get the Option that matches the key on the Option's short name.
|
public void add(Option option)
option - the option to appendpublic List<Option> getLongOptions(String key)
key - the input to matchpublic Option getShortOption(char key)
key - the input to matchpublic List<Option> getOptions(String key)
key - the input to match