public class OptionsHelper
extends java.lang.Object
| Constructor and Description |
|---|
OptionsHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String optionKey)
Retrieves option value corresponding to given key.
|
boolean |
isSet(java.lang.String optionName)
Verifies if an option by the given name is present.
|
void |
load(java.lang.String[] input)
Parses options from the given list of strings.
|
public void load(java.lang.String[] input)
throws java.lang.Exception
input - string array containing options. It is expected
to be of the format:
input[x] == "--optName",
input[x + 1] == "optValue"java.lang.Exceptionpublic java.lang.String get(java.lang.String optionKey)
optionKey - name of the optionpublic boolean isSet(java.lang.String optionName)
optionName - name of the options