

def main(argv=sys.argv[1:]):
    parser = argparse.ArgumentParser()
    parser.add_argument('service', type=str, nargs='?', default=None)
    parser.add_argument('-H', '--host', type=str, help='Which host to bind', default='0.0.0.0')
    parser.add_argument('-p', '--port', type=int, help='Port number to use for connection', default=5000)
    args = parser.parse_args(argv)
    main_app = DomainDispatcherApplication(create_backend_app, service=args.service)
    main_app.debug = True
    run_simple(args.host, args.port, main_app, threaded=True)

dataset/ETHPy150Open spulec/moto/moto/server.py main/original