Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 79ce9f8

Browse files
committed
(fix): default:
1 parent 9b9fda8 commit 79ce9f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Console/Getopt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ protected function _parseSingleOption($flag, &$argv)
789789
$realFlag = $this->_ruleMap[$flag];
790790
switch ($this->_rules[$realFlag]['param']) {
791791
case 'required':
792-
if (count($argv) > 0) {
792+
if (count($argv) > 0 && substr($argv[0], 0, 1) != '-') {
793793
$param = array_shift($argv);
794794
$this->_checkParameterType($realFlag, $param);
795795
} else {

0 commit comments

Comments
 (0)