'Helper function for creating an exit command set + command.
The command of this cmdset has the same name as the Exit
object and allows the exit to react when the player enter the
exit\'s name, triggering the movement between rooms.
Args:
exidbobj (Object): The DefaultExit object to base the command on.'

def create_exit_cmdset(self, exidbobj):

    cmd = self.exit_command(key=exidbobj.db_key.strip().lower(), aliases=exidbobj.aliases.all(), locks=str(exidbobj.locks), auto_help=False, destination=exidbobj.db_destination, arg_regex='^$', is_exit=True, obj=exidbobj)
    exit_cmdset = cmdset.CmdSet(None)
    exit_cmdset.key = 'ExitCmdSet'
    exit_cmdset.priority = self.priority
    exit_cmdset.duplicates = True
    exit_cmdset.add(cmd)
    return exit_cmdset
