original_string: protected function _displayHelp($command)
      {
          $format = 'text';
          if (!empty($this->args[0]) && $this->args[0] === 'xml') {
              $format = 'xml';
              $this->_io->setOutputAs(ConsoleOutput::RAW);
          } else {
              $this->_welcome();
          }
  
          $subcommands = $this->OptionParser->subcommands();
          $command = isset($subcommands[$command]) ? $command : null;
  
          return $this->out($this->OptionParser->help($command, $format));
      }
code: protected function _displayHelp($command)
      {
          $format = 'text';
          if (!empty($this->args[0]) && $this->args[0] === 'xml') {
              $format = 'xml';
              $this->_io->setOutputAs(ConsoleOutput::RAW);
          } else {
              $this->_welcome();
          }
  
          $subcommands = $this->OptionParser->subcommands();
          $command = isset($subcommands[$command]) ? $command : null;
  
          return $this->out($this->OptionParser->help($command, $format));
      }
code_tokens: protected function _displayHelp ( $ command ) { $ format = 'text' ; if ( ! empty ( $ this -> args [ 0 ] ) && $ this -> args [ 0 ] === 'xml' ) { $ format = 'xml' ; $ this -> _io -> setOutputAs ( ConsoleOutput :: RAW ) ; } else { $ this -> _welcome ( ) ; } $ subcommands = $ this -> OptionParser -> subcommands ( ) ; $ command = isset ( $ subcommands [ $ command ] ) ? $ command : null ; return $ this -> out ( $ this -> OptionParser -> help ( $ command , $ format ) ) ; }
docstring: Display the help in the correct format
  
  @param string $command The command to get help for.
  @return int|bool The number of bytes returned from writing to stdout.
docstring_tokens: Display the help in the correct format