diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-04 22:37:02 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-04 22:37:02 +0000 |
commit | f6f73dce60e571c7993093d92b6c3e7ff0a5bcfe (patch) | |
tree | e31f75f4d173414acdad777ca96daad8c1f5559e /docs/source/generate_configs.py | |
parent | ffc711c405935976e1dbe4c2affbe778858a70ab (diff) |
docs: better type description for option lists
Diffstat (limited to 'docs/source/generate_configs.py')
-rwxr-xr-x | docs/source/generate_configs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/source/generate_configs.py b/docs/source/generate_configs.py index 41fa9a08..3be1043d 100755 --- a/docs/source/generate_configs.py +++ b/docs/source/generate_configs.py @@ -31,7 +31,10 @@ def rewrite_entries(config, path, sec=None, sort=False): for c in comments: if c: description += ' '*4 + re.sub('^\s*#\s*', '', c) + '\n' - description += '\n :type: %s\n' % etype + if etype == 'option': + description += '\n :type: option, one of %s\n' % eargs + else: + description += '\n :type: %s\n' % etype if default != None: if etype in ['string', 'string_list'] and default != 'None': |