original_string: 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();
          }
      }
code: 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();
          }
      }
code_tokens: 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 ( ) ; } }
docstring: Output help for a certain command or the current command if a help option is specified
  @param string|null $command
docstring_tokens: Output help for a certain command or the current command if a help option is specified