original_string: protected function getCommandError($command)
      {
          $rootCommand = $this->getCommand();
          $subcommands = array_keys((array)$this->subcommands());
          $bestGuess = $this->findClosestItem($command, $subcommands);
  
          $out = [
              sprintf(
                  'Unable to find the `%s %s` subcommand. See `bin/%s %s --help`.',
                  $rootCommand,
                  $command,
                  $this->rootName,
                  $rootCommand
              ),
              ''
          ];
  
          if ($bestGuess !== null) {
              $out[] = sprintf('Did you mean : `%s %s` ?', $rootCommand, $bestGuess);
              $out[] = '';
          }
          $out[] = sprintf('Available subcommands for the `%s` command are : ', $rootCommand);
          $out[] = '';
          foreach ($subcommands as $subcommand) {
              $out[] = ' - ' . $subcommand;
          }
  
          return implode("\n", $out);
      }
code: protected function getCommandError($command)
      {
          $rootCommand = $this->getCommand();
          $subcommands = array_keys((array)$this->subcommands());
          $bestGuess = $this->findClosestItem($command, $subcommands);
  
          $out = [
              sprintf(
                  'Unable to find the `%s %s` subcommand. See `bin/%s %s --help`.',
                  $rootCommand,
                  $command,
                  $this->rootName,
                  $rootCommand
              ),
              ''
          ];
  
          if ($bestGuess !== null) {
              $out[] = sprintf('Did you mean : `%s %s` ?', $rootCommand, $bestGuess);
              $out[] = '';
          }
          $out[] = sprintf('Available subcommands for the `%s` command are : ', $rootCommand);
          $out[] = '';
          foreach ($subcommands as $subcommand) {
              $out[] = ' - ' . $subcommand;
          }
  
          return implode("\n", $out);
      }
code_tokens: protected function getCommandError ( $ command ) { $ rootCommand = $ this -> getCommand ( ) ; $ subcommands = array_keys ( ( array ) $ this -> subcommands ( ) ) ; $ bestGuess = $ this -> findClosestItem ( $ command , $ subcommands ) ; $ out = [ sprintf ( 'Unable to find the `%s %s` subcommand. See `bin/%s %s --help`.' , $ rootCommand , $ command , $ this -> rootName , $ rootCommand ) , '' ] ; if ( $ bestGuess !== null ) { $ out [ ] = sprintf ( 'Did you mean : `%s %s` ?' , $ rootCommand , $ bestGuess ) ; $ out [ ] = '' ; } $ out [ ] = sprintf ( 'Available subcommands for the `%s` command are : ' , $ rootCommand ) ; $ out [ ] = '' ; foreach ( $ subcommands as $ subcommand ) { $ out [ ] = ' - ' . $ subcommand ; } return implode ( "\n" , $ out ) ; }
docstring: Get the message output in the console stating that the command can not be found and tries to guess what the user
  wanted to say. Output a list of available subcommands as well.
  
  @param string $command Unknown command name trying to be dispatched.
  @return string The message to be displayed in the console.
docstring_tokens: Get the message output in the console stating that the command can not be found and tries to guess what the user wanted to say . Output a list of available subcommands as well .