Skip to content

Commit

Permalink
(fix): default:
Browse files Browse the repository at this point in the history
  • Loading branch information
a-lucas authored and Dimitris Giotas committed Jun 17, 2016
1 parent 2fe7ccf commit cb179ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Console/Getopt.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cb179ed

Please sign in to comment.