From 69c0b5ac9f185436da804bed6f49d82fc3663d5f Mon Sep 17 00:00:00 2001 From: Sophian Mehboub Date: Sat, 28 Jan 2023 16:48:55 +0100 Subject: [PATCH] fix: restrict to a choice of a list of values the `--target` option in `api` command --- slo_generator/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slo_generator/cli.py b/slo_generator/cli.py index aa678bad..f029b236 100644 --- a/slo_generator/cli.py +++ b/slo_generator/cli.py @@ -156,6 +156,7 @@ def compute(slo_config, config, export, delete, timestamp): "--target", envvar="GOOGLE_FUNCTION_TARGET", default="run_compute", + type=click.Choice(["run_compute", "run_export"]), help="Target function name", ) @click.option(