public function outputHelp($command = null)
    {
        $help_options = $this->config->get('cli_help_option', 'h');

        if (isset($command) || $this->getParam($help_options)) {

            if (!isset($command)) {
                $command = $this->command;
            }

            $aliases = $this->route->getAliases();

            if (isset($aliases[$command])) {
                $command = $aliases[$command];
            }

            $routes = $this->route->getList();

            if (empty($routes[$command])) {
                $this->errorAndExit($this->text('Unknown command'));
            }

            $this->printHelpText($routes[$command]);
            $this->output();
        }
    }
public function outputHelp($command = null)
    {
        $help_options = $this->config->get('cli_help_option', 'h');

        if (isset($command) || $this->getParam($help_options)) {

            if (!isset($command)) {
                $command = $this->command;
            }

            $aliases = $this->route->getAliases();

            if (isset($aliases[$command])) {
                $command = $aliases[$command];
            }

            $routes = $this->route->getList();

            if (empty($routes[$command])) {
                $this->errorAndExit($this->text('Unknown command'));
            }

            $this->printHelpText($routes[$command]);
            $this->output();
        }
    }
public function outputHelp ( $ command = null ) { $ help_options = $ this -> config -> get ( 'cli_help_option' , 'h' ) ; if ( isset ( $ command ) || $ this -> getParam ( $ help_options ) ) { if ( ! isset ( $ command ) ) { $ command = $ this -> command ; } $ aliases = $ this -> route -> getAliases ( ) ; if ( isset ( $ aliases [ $ command ] ) ) { $ command = $ aliases [ $ command ] ; } $ routes = $ this -> route -> getList ( ) ; if ( empty ( $ routes [ $ command ] ) ) { $ this -> errorAndExit ( $ this -> text ( 'Unknown command' ) ) ; } $ this -> printHelpText ( $ routes [ $ command ] ) ; $ this -> output ( ) ; } }
Output help for a certain command or the current command if a help option is specified
@param string|null $command
Output help for a certain command or the current command if a help option is specified