environment/lib/python2.7/site-packages/nose/sphinx/pluginopts.py
def autohelp_directive(dirname, arguments, options, content, lineno,
                       content_offset, block_text, state, state_machine):
    """produces rst from nose help"""
    config = Config(parserClass=OptBucket,
                    plugins=BuiltinPluginManager())
    parser = config.getParser(TestProgram.usage())
    rst = ViewList()
    for line in parser.format_help().split('\n'):
        rst.append(line, '<autodoc>')

    rst.append('Options', '<autodoc>')
    rst.append('-------', '<autodoc>')
    rst.append('', '<autodoc>')
    for opt in parser:
        rst.append(opt.options(), '<autodoc>')
        rst.append('   \n', '<autodoc>')
        rst.append('   ' + opt.help + '\n', '<autodoc>')
        rst.append('\n', '<autodoc>')    
    node = nodes.section()
    node.document = state.document
    surrounding_title_styles = state.memo.title_styles
    surrounding_section_level = state.memo.section_level
    state.memo.title_styles = []
    state.memo.section_level = 0
    state.nested_parse(rst, 0, node, match_titles=1)
    state.memo.title_styles = surrounding_title_styles
    state.memo.section_level = surrounding_section_level

    return node.children
def autohelp_directive(dirname, arguments, options, content, lineno,
                       content_offset, block_text, state, state_machine):
    config = Config(parserClass=OptBucket,
                    plugins=BuiltinPluginManager())
    parser = config.getParser(TestProgram.usage())
    rst = ViewList()
    for line in parser.format_help().split('\n'):
        rst.append(line, '<autodoc>')

    rst.append('Options', '<autodoc>')
    rst.append('-------', '<autodoc>')
    rst.append('', '<autodoc>')
    for opt in parser:
        rst.append(opt.options(), '<autodoc>')
        rst.append('   \n', '<autodoc>')
        rst.append('   ' + opt.help + '\n', '<autodoc>')
        rst.append('\n', '<autodoc>')    
    node = nodes.section()
    node.document = state.document
    surrounding_title_styles = state.memo.title_styles
    surrounding_section_level = state.memo.section_level
    state.memo.title_styles = []
    state.memo.section_level = 0
    state.nested_parse(rst, 0, node, match_titles=1)
    state.memo.title_styles = surrounding_title_styles
    state.memo.section_level = surrounding_section_level

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