array|string|null getValue(
string
$optname)
|
|
Returns the argument of the given option
You can use the short, alias or long version of the option name. This method will try to find the argument(s) of the given option name. If it is not found it will return null. If the arg has more than one argument, an array of arguments will be returned.
Parameters:
array getValues(
[string
$optionNames = 'long'])
|
|
Returns all arguments that have been parsed and recognized
The name of the options are stored in the keys of the array. You may choose whether you want to use the long or the short option names
Parameters:
boolean isDefined(
string
$optname)
|
|
Checks whether the given option is defined
An option will be defined if an argument was assigned to it using the command line options. You can use the short, the long or an alias name as parameter.
Parameters: