Source code for hexrd.cli.documentation

"""Browse documentation"""

help = "Launches the hexrd documentation (work in progress) in a web browser"


[docs]def configure_parser(sub_parsers): p = sub_parsers.add_parser('documentation', description=help, help=help) p.set_defaults(func=execute)
[docs]def execute(args, parser): import webbrowser import hexrd webbrowser.open_new_tab(hexrd.doc_url)