Rename cmd/desc to command/description

Ref #1832
This commit is contained in:
Alexey Sokolov
2022-07-04 23:16:22 +01:00
parent bcfe530fda
commit e0c05ddb63
2 changed files with 9 additions and 6 deletions

View File

@@ -434,9 +434,9 @@ class Module:
# Command stuff
def AddCommand(self, cls, *args, **kwargs):
cmd = cls(*args, **kwargs)
cmd._cmodcommand = CreatePyModCommand(self._cmod, cls.cmd,
cmd._cmodcommand = CreatePyModCommand(self._cmod, cls.command,
COptionalTranslation(cls.args),
COptionalTranslation(cls.desc),
COptionalTranslation(cls.description),
cmd)
return cmd
@@ -685,9 +685,9 @@ class Module:
class Command:
cmd = ''
command = ''
args = ''
desc = ''
description = ''
def __call__(self, sLine):
pass