def CommandSuggestion(command, suggestion):
  """Decorator for adding a suggestion when a command is mistyped.

  This applies to base.Group classes. When a user tries to run the given
  `command` that does not exist, `suggestion` will but suggested as a
  "did you mean".

  Args:
    command: str, The name of the command (just the command itself not including
      the group).
    suggestion: str, The full command name to suggest (excluding the gcloud
      prefix).

  Returns:
    The inner decorator.
  """
  def Inner(cmd_class):
    # pylint: disable=protected-access
    cmd_class._command_suggestions[command] = suggestion
    return cmd_class
  return Inner