Console_CommandLine_Action | --Console_CommandLine_Action_Callback
The result option array entry value is set to the return value of the callback defined in the option.
There are two steps to defining a callback option:
- callable_func(
- $value, // the value of the option
- $option_instance, // the option instance
- $result_instance, // the result instance
- $parser_instance, // the parser instance
- $params // an array of params as specified in the option
- );
and *must* return the option value.string execute(
[mixed
$value = false], [array
$params = array()])