Skip to content

Commit 69c0b5a

Browse files
committed
fix: restrict to a choice of a list of values the --target option in api command
1 parent 3303735 commit 69c0b5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

slo_generator/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def compute(slo_config, config, export, delete, timestamp):
156156
"--target",
157157
envvar="GOOGLE_FUNCTION_TARGET",
158158
default="run_compute",
159+
type=click.Choice(["run_compute", "run_export"]),
159160
help="Target function name",
160161
)
161162
@click.option(

0 commit comments

Comments
 (0)