diff options
author | Michael DeHaan <michael@ansible.com> | 2014-07-28 12:08:29 -0400 |
---|---|---|
committer | Michael DeHaan <michael@ansible.com> | 2014-07-28 12:08:29 -0400 |
commit | b69f096e8a5d444599f735f384d3a8eb762d6870 (patch) | |
tree | 5c31ce1d9196e654dbe41f9572e3718d7a5a7089 /bin | |
parent | 726a1a33e0b10a93a6a922ff7214ae42b10670fc (diff) | |
parent | 891aa41001d2cce549167b69a436c3dcc54eb2d9 (diff) | |
download | ansible-b69f096e8a5d444599f735f384d3a8eb762d6870.tar.gz |
Merge branch 'ufw' of git://github.com/Trozz/ansible into devel
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible-doc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ansible-doc b/bin/ansible-doc index a77fff8130..9faff67507 100755 --- a/bin/ansible-doc +++ b/bin/ansible-doc @@ -113,6 +113,9 @@ def get_man_text(doc): if 'choices' in opt: choices = ", ".join(str(i) for i in opt['choices']) desc = desc + " (Choices: " + choices + ")" + if 'default' in opt: + default = str(opt['default']) + desc = desc + " [Default: " + default + "]" text.append("%s\n" % textwrap.fill(tty_ify(desc), initial_indent=opt_indent, subsequent_indent=opt_indent)) |