From 7b8d07253adf84d5e3d46ac915a1440e518fab3c Mon Sep 17 00:00:00 2001 From: Googler Date: Fri, 13 Sep 2024 15:23:04 -0700 Subject: [PATCH] Add `--allowlist` flag to one version Follow-up to https://github.com/bazelbuild/bazel/commit/ba5757077b5446fdc8b1e36a063f7ba2613decd5 PiperOrigin-RevId: 674452799 Change-Id: I4892f462b54eb4bbc0849f7b99c50c45ff876613 --- src/tools/one_version/one_version_main.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/one_version/one_version_main.cc b/src/tools/one_version/one_version_main.cc index 26c8734432e7c5..577df968134f09 100644 --- a/src/tools/one_version/one_version_main.cc +++ b/src/tools/one_version/one_version_main.cc @@ -45,7 +45,9 @@ int main(int argc, char *argv[]) { if (tokens.MatchAndSet("--output", &output_file) || tokens.MatchAndSet("--succeed_on_found_violations", &succeed_on_found_violations) || + // TODO(b/366268295): remove once the flag is no longer used tokens.MatchAndSet("--whitelist", &allowlist_file) || + tokens.MatchAndSet("--allowlist", &allowlist_file) || tokens.MatchAndSet("--inputs", &inputs)) { } else { std::cerr << "error: bad command line argument " << tokens.token()