'The command name [default: "help"]', ]; /** * the Command's Options * * @var array */ protected $options = []; //-------------------------------------------------------------------- /** * Displays the help for the spark cli script itself. * * @param array $params */ public function run(array $params) { $command = array_shift($params); if (is_null($command)) { $command = 'help'; } $commands = $this->commands->getCommands(); $class = new $commands[$command]['class']($this->logger, $this->commands); $class->showHelp(); } }