def main()

in pkgs/rewrite-nix-paths-macho/rewrite-nix-paths-macho.py [0:0]


def main():
    parser = argparse.ArgumentParser(
        description="Rewrite Nix store paths in a macOS dynamic library (.so or .dylib) to be @rpath-relative.",
    )
    parser.add_argument(
        "file", type=Path, help="Path to the .so or .dylib file to modify."
    )
    args = parser.parse_args()
    rewrite_nix_paths(args.file)