diff options
author | Stefhen Hovland <stefhen.hovland+github@gmail.com> | 2014-02-14 00:12:29 -0500 |
---|---|---|
committer | Stefhen Hovland <stefhen.hovland+github@gmail.com> | 2014-02-14 00:12:29 -0500 |
commit | e1b7278265f11b8c77ceaf03a3dc5dee512c4325 (patch) | |
tree | 1adce21954df12d7d94237bcf4a6340eefbefeb6 /bin/ansible-doc | |
parent | 30cabddf76e740f136463628eb8684289a1d9a35 (diff) | |
download | ansible-e1b7278265f11b8c77ceaf03a3dc5dee512c4325.tar.gz |
Only display equals sign in summary for required options.
Diffstat (limited to 'bin/ansible-doc')
-rwxr-xr-x | bin/ansible-doc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ansible-doc b/bin/ansible-doc index 96703d9bc1..a77fff8130 100755 --- a/bin/ansible-doc +++ b/bin/ansible-doc @@ -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('') |