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();
        }
    }