summaryrefslogtreecommitdiff
path: root/docs/source/generate_configs.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-03-04 22:37:02 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-03-04 22:37:02 +0000
commitf6f73dce60e571c7993093d92b6c3e7ff0a5bcfe (patch)
treee31f75f4d173414acdad777ca96daad8c1f5559e /docs/source/generate_configs.py
parentffc711c405935976e1dbe4c2affbe778858a70ab (diff)
docs: better type description for option lists
Diffstat (limited to 'docs/source/generate_configs.py')
-rwxr-xr-xdocs/source/generate_configs.py5
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':