Interface ParamParser
access this type via: util.ParamParser (provides, requires or uses)
Utility interface to help with parsing command-line parameters.
Functions
ParamParser(AppParam params[], optional String switches[])
char[] getValue(char paramKey[])
bool hasSwitch(char key[])
String[] getFreeValues()
bool hasFreeValue(char val[])
ParamParser(AppParam params[], optional String switches[])
Parse a set of parameters into elements of key/value pairs (-key value), switches (-key), and free values not bound to a key.
params The command-line arguments to parse.
switches The set of switches which do not have an associated value, used to disambiguate kay/values and free values.
char[] getValue(char paramKey[])
Get the value associated with the given key (if any).
paramKey They key for which to return an associated value.
bool hasSwitch(char key[])
Check for the presence of a switch.
key They switch to check for the presence of.
String[] getFreeValues()
Get the list of free values.
bool hasFreeValue(char val[])
Check for the presence of a given free value.