Skip to content

Commit e6ec93c

Browse files
committed
fallback for missing long documentation
1 parent 833b4c8 commit e6ec93c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

func2argparse/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def _parse_docs(doc):
7575
if len(line.strip()):
7676
description.append(line.strip())
7777
description = " ".join(description)
78+
if len(description) == 0:
79+
description = lines[0].strip()
7880

7981
argdocs = OrderedDict()
8082
currvar = None

0 commit comments

Comments
 (0)