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