Merge pull request #1833 from DarthGandalf/pycmd

Rename cmd/desc to command/description
This commit is contained in:
Alexey Sokolov
2022-07-05 21:38:29 +01:00
committed by GitHub
5 changed files with 65 additions and 7 deletions
+4 -4
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