From f74deb410aa06a0e5309881255d57124a9792851 Mon Sep 17 00:00:00 2001 From: Arisu Tachibana Date: Wed, 25 Dec 2024 11:45:54 +0900 Subject: [PATCH] subcommands/results: Add click choice options Signed-off-by: Arisu Tachibana --- kcidev/subcommands/results.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kcidev/subcommands/results.py b/kcidev/subcommands/results.py index 9b3bb55..dbe8185 100644 --- a/kcidev/subcommands/results.py +++ b/kcidev/subcommands/results.py @@ -175,6 +175,7 @@ def cmd_builds(data, commit, download_logs, status): ) @click.option( "--action", + type=click.Choice(["summary", "trees", "builds"], case_sensitive=True), help="Select desired results action", ) @click.option( @@ -189,7 +190,8 @@ def cmd_builds(data, commit, download_logs, status): ) @click.option( "--status", - help="Status of test result: all, pass, fail, inconclusive", + type=click.Choice(["all", "pass", "fail", "inconclusive"], case_sensitive=True), + help="Status of test result", default="all", ) @click.pass_context