forked from mirror/Archipelago
Core: fix bug with missing help text (#5632)
Co-authored-by: Duck <31627079+duckboycool@users.noreply.github.com>
This commit is contained in:
@@ -1364,7 +1364,10 @@ class CommandProcessor(metaclass=CommandMeta):
|
|||||||
argname += "=" + parameter.default
|
argname += "=" + parameter.default
|
||||||
argtext += argname
|
argtext += argname
|
||||||
argtext += " "
|
argtext += " "
|
||||||
doctext = '\n '.join(inspect.getdoc(method).split('\n'))
|
method_doc = inspect.getdoc(method)
|
||||||
|
if method_doc is None:
|
||||||
|
method_doc = "(missing help text)"
|
||||||
|
doctext = "\n ".join(method_doc.split("\n"))
|
||||||
s += f"{self.marker}{command} {argtext}\n {doctext}\n"
|
s += f"{self.marker}{command} {argtext}\n {doctext}\n"
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user