e
This commit is contained in:
@@ -67,12 +67,20 @@ abstract class AbstractConsole extends Component
|
|||||||
{
|
{
|
||||||
$name = $this->parameters->getCommandName();
|
$name = $this->parameters->getCommandName();
|
||||||
$this->parameters->set('commandList', $this->getCommandList());
|
$this->parameters->set('commandList', $this->getCommandList());
|
||||||
|
|
||||||
|
$help = 'help';
|
||||||
foreach ($this->commands as $command) {
|
foreach ($this->commands as $command) {
|
||||||
|
if ($command->command == $help) {
|
||||||
|
$help = $command;
|
||||||
|
}
|
||||||
if ($command->command != $name) {
|
if ($command->command != $name) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
return $command;
|
return $command;
|
||||||
}
|
}
|
||||||
|
if (is_object($help)) {
|
||||||
|
return $help;
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user