1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix option descriptions in ansible-doc output

Fixes #12462.
This commit is contained in:
Marius Gedminas 2015-09-22 10:00:33 +03:00
parent 18adfc6d1a
commit 339790adc4

View file

@ -255,10 +255,10 @@ class DocCLI(CLI):
text.append("%s %s" % (opt_leadin, o))
if isinstance(doc['description'], list):
desc = " ".join(doc['description'])
if isinstance(opt['description'], list):
desc = " ".join(opt['description'])
else:
desc = doc['description']
desc = opt['description']
if 'choices' in opt:
choices = ", ".join(str(i) for i in opt['choices'])