php-cli
php-cli copied to clipboard
It would be helpful if repeating an option would collect all values instead of just the last value
With the following command:
command --myopt=value1 --myopt=value2
Calling:
$options->getOpt('myopt')
would return an array containing all values:
['value1', 'value2']
instead, it currently returns a string containing the last value:
'value2'
Great library by the way - really like the minimal requirements!