Commit 4a996a42 authored by ∞'s avatar 💻

Support sub-group docline

parent fcf4e0ab
......@@ -28,7 +28,10 @@ class GroupDocDescriptor:
])
if cmd.target:
doc = inspect.getdoc(cmd.target)
if isinstance(cmd, Group):
doc = cmd.doc.split('\n')[0]
else:
doc = inspect.getdoc(cmd.target)
if doc:
line += doc.split('\n')[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment