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

Only display equals sign in summary for required options.

This commit is contained in:
Stefhen Hovland 2014-02-14 00:12:29 -05:00
parent 30cabddf76
commit e1b7278265

View file

@ -149,7 +149,12 @@ def get_snippet_text(doc):
for o in sorted(doc['options'].keys()):
opt = doc['options'][o]
desc = tty_ify("".join(opt['description']))
s = o + "="
if opt.get('required', False):
s = o + "="
else:
s = o
text.append(" %-20s # %s" % (s, desc))
text.append('')