From 690d27b002685f2145eaead72ada703ebab29b83 Mon Sep 17 00:00:00 2001 From: Till Hartmann Date: Fri, 6 Sep 2024 13:10:02 +0200 Subject: [PATCH] restrict choices --- cubi_tk/sodar/lz_list.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cubi_tk/sodar/lz_list.py b/cubi_tk/sodar/lz_list.py index 35fa0d1..32cdd41 100644 --- a/cubi_tk/sodar/lz_list.py +++ b/cubi_tk/sodar/lz_list.py @@ -65,9 +65,10 @@ def setup_argparse(cls, parser: argparse.ArgumentParser) -> None: parser.add_argument( "--filter-status", dest="filter_status", - default=[], - action='append', - help="Filter landing zones by status, e.g. ACTIVE, FAILED", + default=set(), + action="append", + choices=["ACTIVE", "FAILED", "VALIDATING"], + help="Filter landing zones by status", ) parser.add_argument("project_uuid", help="UUID of project to create the landing zone in.")