We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd7d745 commit ca598d1Copy full SHA for ca598d1
src/Console/ConsoleOptionParser.php
@@ -474,7 +474,9 @@ public function parse($argv) {
474
$params = $args = [];
475
$this->_tokens = $argv;
476
while (($token = array_shift($this->_tokens)) !== null) {
477
- if (substr($token, 0, 2) === '--') {
+ if (isset($this->_subcommands[$token])) {
478
+ continue;
479
+ } elseif (substr($token, 0, 2) === '--') {
480
$params = $this->_parseLongOption($token, $params);
481
} elseif (substr($token, 0, 1) === '-') {
482
$params = $this->_parseShortOption($token, $params);
0 commit comments