Only display equals sign in summary for required options.

pull/6004/head
Stefhen Hovland 11 years ago
parent 30cabddf76
commit e1b7278265

@ -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']))
if opt.get('required', False):
s = o + "="
else:
s = o
text.append(" %-20s # %s" % (s, desc))
text.append('')

Loading…
Cancel
Save