class_docstr: Raised if click attempted to handle an option that does not
  exist.
  
  .. versionadded:: 4.0
class_docstr_tok: ["Raised","if","click","attempted","to","handle","an","option","that","does","not","exist",".","..","versionadded",":",":","4.0"]
code: def format_message(self) -> str:
      if not self.possibilities:
          return self.message
  
      possibility_str = ", ".join(sorted(self.possibilities))
      suggest = ngettext(
          "Did you mean {possibility}?",
          "(Possible options: {possibilities})",
          len(self.possibilities),
      ).format(
          possibility=possibility_str, possibilities=possibility_str
      )
      return f"{self.message} {suggest}"
  
imports: import typing
  from gettext import gettext
  from gettext import ngettext
  from ._compat import get_text_stderr
  from .utils import echo
  from .utils import format_filename
label_desc: Use image node_id 2 for calling the NoSuchOption obj's underlying member method code with example usage: obj.format_message() and returns: self, str, suggest, self