diff --git a/library/Zend/Console/Getopt.php b/library/Zend/Console/Getopt.php index 20a5366a0a..031e55c7cc 100644 --- a/library/Zend/Console/Getopt.php +++ b/library/Zend/Console/Getopt.php @@ -789,7 +789,7 @@ protected function _parseSingleOption($flag, &$argv) $realFlag = $this->_ruleMap[$flag]; switch ($this->_rules[$realFlag]['param']) { case 'required': - if (count($argv) > 0) { + if (count($argv) > 0 && substr($argv[0], 0, 1) != '-') { $param = array_shift($argv); $this->_checkParameterType($realFlag, $param); } else {