SimpleCommandLineArgsParser
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addOptionArg(String optionName, String optionValue)
Add an option argument for the given option name and add the given value to the list of values associated with this option (of which there may be zero or more). |
| public boolean | containsOption(String optionName)
Return whether the option with the given name was present on the command line. |
| public List | |
| public Set | |
| public List |
| nonOptionArgs | back to summary |
|---|---|
| private final List<String> nonOptionArgs | |
| optionArgs | back to summary |
|---|---|
| private final Map<String, List<String>> optionArgs | |
| CommandLineArgs | back to summary |
|---|---|
| pack-priv CommandLineArgs() | |
| addNonOptionArg | back to summary |
|---|---|
| public void addNonOptionArg(String value) Add the given value to the list of non-option arguments. | |
| addOptionArg | back to summary |
|---|---|
| public void addOptionArg(String optionName, String optionValue) Add an option argument for the given option name and add the given value to the
list of values associated with this option (of which there may be zero or more).
The given value may be | |
| containsOption | back to summary |
|---|---|
| public boolean containsOption(String optionName) Return whether the option with the given name was present on the command line. | |
| getNonOptionArgs | back to summary |
|---|---|
| public List Return the list of non-option arguments specified on the command line. | |
| getOptionNames | back to summary |
|---|---|
| public Set Return the set of all option arguments present on the command line. | |
| getOptionValues | back to summary |
|---|---|
| public List Return the list of values associated with the given option.
| |