def parse_args(): parser = argparse.ArgumentParser(description="download dependencies") parser.add_argument( "--group", action="store", choices=["basic", "node", "all"], default="basic", help="specify the group to download", ) parser.add_argument( "--target-arch", action="store", choices=["x86", "x64"], default=util.default_arch(), help="specify the arch to build for", ) parser.add_argument( "--component", action="store", choices=["static_library", "shared_library"], default="shared_library", help="build component shared or static", ) parser.add_argument( "--library", action="store", choices=["static_library", "shared_library"], default="static_library", help="build library shared or static", ) return parser.parse_args()
def parse_args(): parser = argparse.ArgumentParser(description="build vendor") parser.add_argument( "--target-arch", action="store", choices=["x86", "x64"], default=util.default_arch(), help="specify the arch to build for", ) parser.add_argument("--target", action="store", nargs="+", default=["ipc"], help="specify the target to build") parser.add_argument( "--configuration", action="store", nargs="+", default=["Debug"], help="build with Release or Debug" ) return parser.parse_args()