code: def short_doc(self):
          
          if self.brief is not None:
              return self.brief
          if self.help is not None:
              return self.help.split('\n', 1)[0]
          return ''
docs: Gets the "short" documentation of a command.
  
          By default, this is the :attr:`brief` attribute.
          If that lookup leads to an empty string then the first line of the
          :attr:`help` attribute is used instead.