Fix Keras nightly build script.

PiperOrigin-RevId: 519188628
This commit is contained in:
Francois Chollet 2023-03-24 11:03:27 -07:00 committed by TensorFlower Gardener
parent b6080ffbd3
commit b661c9f73d

@ -441,7 +441,9 @@ def test_wheel(wheel_path, expected_version, requirements_path):
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
"--nightly", default=False, help="Whether this is for keras-nightly"
"--nightly",
action=argparse.BooleanOptionalAction,
help="Whether this is for the `keras-nightly` package.",
)
args = parser.parse_args()
is_nightly = args.nightly