code: def addCmdClass(self, ctor, **opts):
          '''
          Add a Cmd subclass to this cli.
          '''
          item = ctor(self, **opts)
          name = item.getCmdName()
          self.cmds[name] = itef addCmdClass(self, ctor, **opts):
          '''
          Add a Cmd subclass to this cli.
          '''
          item = ctor(self, **opts)
          name = item.getCmdName()
          self.cmds[name] = item
docs: Add a Cmd subclass to this cli.