Some minor cleanups of edit code
This commit is contained in:
parent
3ebc55da82
commit
349805c5ac
1 changed files with 7 additions and 11 deletions
|
|
@ -515,18 +515,14 @@ class CmdDesc(MuxCommand):
|
||||||
"""
|
"""
|
||||||
describe an object
|
describe an object
|
||||||
|
|
||||||
Usage 1:
|
Usage:
|
||||||
@desc [<obj> =] >description>
|
@desc [<obj> =] <description>
|
||||||
|
|
||||||
Sets the "desc" attribute on an
|
Switches:
|
||||||
object. If an object is not given,
|
edit - Open up a line editor for more advanced editing.
|
||||||
|
|
||||||
|
Sets the "desc" attribute on an object. If an object is not given,
|
||||||
describe the current room.
|
describe the current room.
|
||||||
|
|
||||||
Usage 2:
|
|
||||||
@desc/edit [obj]
|
|
||||||
|
|
||||||
Opens up a line editor to set the "desc"
|
|
||||||
attribute on an object for advanced editing.
|
|
||||||
"""
|
"""
|
||||||
key = "@desc"
|
key = "@desc"
|
||||||
aliases = "@describe"
|
aliases = "@describe"
|
||||||
|
|
@ -570,7 +566,7 @@ class CmdDesc(MuxCommand):
|
||||||
|
|
||||||
caller = self.caller
|
caller = self.caller
|
||||||
if not self.args and 'edit' not in self.switches:
|
if not self.args and 'edit' not in self.switches:
|
||||||
caller.msg("Usage: @desc [<obj> =] >description>")
|
caller.msg("Usage: @desc [<obj> =] <description>")
|
||||||
return
|
return
|
||||||
|
|
||||||
if 'edit' in self.switches:
|
if 'edit' in self.switches:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue