X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole.php;h=c60f36296a56010c2d2be0c4d2c87187654639d3;hb=f68b3c7c4ec9c7c98054035957db178d5071542c;hp=2cca4f15bb790d914b6ca6f6d26663a8444e48c5;hpb=4d9d62bcdbcbccb72562f58332f230df70ead796;p=friendica.git diff --git a/src/Core/Console.php b/src/Core/Console.php index 2cca4f15bb..c60f36296a 100644 --- a/src/Core/Console.php +++ b/src/Core/Console.php @@ -73,7 +73,6 @@ HELP; $this->out('Options: ' . var_export($this->options, true)); } - $showHelp = false; $subHelp = false; $command = null; @@ -83,7 +82,6 @@ HELP; return 0; } elseif ((count($this->options) === 0 || $this->getOption($this->customHelpOptions) === true || $this->getOption($this->customHelpOptions) === 1) && count($this->args) === 0 ) { - $showHelp = true; } elseif (count($this->args) >= 2 && $this->getArgument(0) == 'help') { $command = $this->getArgument(1); $subHelp = true; @@ -123,6 +121,7 @@ HELP; $className = $this->subConsoles[$command]; + /** @var Console $subconsole */ $subconsole = new $className($subargs); foreach ($this->options as $name => $value) {