Core: improve formatting on /help command (#5381)
This commit is contained in:
@@ -1321,7 +1321,8 @@ class CommandProcessor(metaclass=CommandMeta):
|
|||||||
argname += "=" + parameter.default
|
argname += "=" + parameter.default
|
||||||
argtext += argname
|
argtext += argname
|
||||||
argtext += " "
|
argtext += " "
|
||||||
s += f"{self.marker}{command} {argtext}\n {method.__doc__}\n"
|
doctext = '\n '.join(inspect.getdoc(method).split('\n'))
|
||||||
|
s += f"{self.marker}{command} {argtext}\n {doctext}\n"
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def _cmd_help(self):
|
def _cmd_help(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user