def autohelp_directive(dirname, arguments, options, content, lineno,<EOL>content_offset, block_text, state, state_machine):
config = Config(parserClass=OptBucket,<EOL>plugins=BuiltinPluginManager())<EOL>parser = config.getParser(TestProgram.usage())<EOL>rst = ViewList()<EOL>for line in parser.format_help().split('<STR_LIT:\n>'):<EOL><INDENT>rst.append(line, '<STR_LIT>')<EOL><DEDENT>rst.append('<STR_LIT>', '<STR_LIT>')<EOL>rst.append('<STR_LIT>', '<STR_LIT>')<EOL>rst.append('<STR_LIT>', '<STR_LIT>')<EOL>for opt in parser:<EOL><INDENT>rst.append(opt.options(), '<STR_LIT>')<EOL>rst.append('<STR_LIT>', '<STR_LIT>')<EOL>rst.append('<STR_LIT:U+0020>' + opt.help + '<STR_LIT:\n>', '<STR_LIT>')<EOL>rst.append('<STR_LIT:\n>', '<STR_LIT>')    <EOL><DEDENT>node = nodes.section()<EOL>node.document = state.document<EOL>surrounding_title_styles = state.memo.title_styles<EOL>surrounding_section_level = state.memo.section_level<EOL>state.memo.title_styles = []<EOL>state.memo.section_level = <NUM_LIT:0><EOL>state.nested_parse(rst, <NUM_LIT:0>, node, match_titles=<NUM_LIT:1>)<EOL>state.memo.title_styles = surrounding_title_styles<EOL>state.memo.section_level = surrounding_section_level<EOL>return node.children<EOL>
produces rst from nose help