parameters: (self, cmd, name=None)
docstring: Registers another :class:`Command` with this group.  If the name
          is not provided, the name of the command is used.
docstring_summary: Registers another :class:`Command` with this group.  If the name
          is not provided, the name of the command is used.
docstring_tokens: Registers another : class : Command with this group . If the name is not provided the name of the command is used .
function: def add_command(self, cmd, name=None):
          """Registers another :class:`Command` with this group.  If the name
          is not provided, the name of the command is used.
          """
          name = name or cmd.name
          if name is None:
              raise TypeError('Command has no name.')
          _check_multicommand(self, name, cmd, register=True)
          self.commands[name] = cmd
function_tokens: def add_command ( self , cmd , name = None ) : name = name or cmd . name if name is None : raise TypeError ( 'Command has no name.' ) _check_multicommand ( self , name , cmd , register = True ) self . commands [ name ] = cmd