|
|
@@ -585,7 +585,8 @@ class ConsoleOptionParser {
|
|
|
$option = $this->_options[$name];
|
|
|
$isBoolean = $option->isBoolean();
|
|
|
$nextValue = $this->_nextToken();
|
|
|
- if (!$isBoolean && !empty($nextValue) && !$this->_optionExists($nextValue)) {
|
|
|
+ $emptyNextValue = (empty($nextValue) && $nextValue != 0);
|
|
|
+ if (!$isBoolean && !$emptyNextValue && !$this->_optionExists($nextValue)) {
|
|
|
array_shift($this->_tokens);
|
|
|
$value = $nextValue;
|
|
|
} elseif ($isBoolean) {
|