def main(argv=None):
    if argv is None:
        argv = sys.argv[1:]

    load_commands()
    parser = get_option_parser()
    opt = parser.parse_args(argv)
    run_command(opt, parser)
The program main function.
dataset/ETHPy150Open dvarrazzo/pgxnclient/pgxnclient/cli.py/main