update Command docstring

This commit is contained in:
InspectorCaracal 2022-11-08 20:56:33 -07:00 committed by GitHub
parent c4e4544abd
commit 3d13addc7c

View file

@ -145,17 +145,19 @@ class Command(metaclass=CommandMeta):
The cmdhandler makes the following variables available to the
command methods (so you can always assume them to be there):
self.caller - the game object calling the command
self.cmdstring - the command name used to trigger this command (allows
you to know which alias was used, for example)
cmd.args - everything supplied to the command following the cmdstring
self.args - everything supplied to the command following the cmdstring
(this is usually what is parsed in self.parse())
cmd.cmdset - the cmdset from which this command was matched (useful only
seldomly, notably for help-type commands, to create dynamic
help entries and lists)
cmd.obj - the object on which this command is defined. If a default command,
this is usually the same as caller.
cmd.rawstring - the full raw string input, including any args and no parsing.
self.cmdset - the cmdset from which this command was matched (useful only
seldomly, notably for help-type commands, to create dynamic
help entries and lists)
self.obj - the object on which this command is defined. If a default command,
this is usually the same as caller.
self.raw_string - the full raw string input, including the command name,
any args and no parsing.
The following class properties can/should be defined on your child class: