value()
value(array$options, string $name) : string|null
Reads an option that carries a value.
A value option declares DrushCommands::REQ as its default, and Drush replaces that with the
string the operator supplied or with NULL before the command body runs. A method called
directly - from a test, a hook, or another command - still sees the sentinel, and both forms
mean that nothing was supplied. Drush only ever passes a string, so an integer sentinel cannot
be confused with a value.
Parameters
| array |
$options | The options the command was called with. |
| string | $name | The option name. |
Returns
string|null —The value, or NULL when none was supplied.