'Define command'

def func(self):

    caller = self.caller
    if ((not self.args) and ('edit' not in self.switches)):
        caller.msg('Usage:    @desc    [<obj>    =]    <description>')
        return
    if ('edit' in self.switches):
        self.edit_handler()
        return
    if self.rhs:
        obj = caller.search(self.lhs)
        if (not obj):
            return
        desc = self.rhs
    else:
        obj = (caller.location or self.msg("|rYou    can't    describe    oblivion.|n"))
        if (not obj):
            return
        desc = self.args
    if obj.access(caller, 'edit'):
        obj.db.desc = desc
        caller.msg(('The    description    was    set    on    %s.' % obj.get_display_name(caller)))
    else:
        caller.msg(("You    don't    have    permission    to    edit    the    description    of    %s." % obj.key))
