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:
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: