INNER CODE UNIT · Python

parseArguments

KATRIN-Experiment/Kassiopeia · Scripts/gen-bindings-docs.py:468

def parseArguments():
    parser = argparse.ArgumentParser(description='Process some integers.')
    parser.add_argument('path(s)', metavar='N', type=str, nargs='+',
                        help='base paths to search for bindings files')
    parser.add_argument('-r', '--root', metavar='NAME', type=str,
                        help='root node of the resulting tree')
    parser.add_argument('-b', '--base-url', metavar='URL', type=str, default="",
                        help='base url for links to files (e.g. GitHub tree)')
    parser.add_argument('--xml', action='store_true',
                        help='produce XML examples (.xml file)')
    parser.add_argument('--gv', action='store_true',
                        help='produce GraphViz tree (.dot file)')
    parser.add_argument('--rst', action='store_true',
                        help='produce reStructuredText tables (.rst file)')
    parser.add_argument('--md', action='store_true',
                        help='produce Markdown tables (.md file)')
    parser.add_argument('--with-sections', action='store_true',
                        help='include section dividers in reStructuredText/Markdown output')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…