def get_all_cmd_keys_and_aliases(self, caller=None):
        names = []
        if caller:
            [names.extend(cmd._keyaliases) for cmd in self.commands
                           if cmd.access(caller)]
        else:
            [names.extend(cmd._keyaliases) for cmd in self.commands]
        return names
Collects keys/aliases from commands
dataset/ETHPy150Open evennia/evennia/evennia/commands/cmdset.py/CmdSet.get_all_cmd_keys_and_aliases