doc generation for commandline now extracted into an RST directly.

This commit is contained in:
2014-12-20 16:21:46 +01:00
parent 229b49e88d
commit 07c2bc5075
9 changed files with 288 additions and 23 deletions

View File

@@ -116,7 +116,8 @@ def parse_parser(parser, data=None, **kwargs):
option = {
'name': action.option_strings,
'default': action.default if show_defaults else '==SUPPRESS==',
'help': action.help or ''
'help': action.help or '',
'metavar': action.metavar
}
if action.choices:
option['choices'] = action.choices