def func(self):

        caller = self.caller
        if self.arglist:
            obj = caller.search(self.arglist[0])
            if not obj:
                return
        else:
            obj = caller
        string = "%s" % obj.cmdset
        caller.msg(string)
list the cmdsets
dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py/CmdListCmdSets.func