Skip to content

Commit

Permalink
restrict choices
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Sep 6, 2024
1 parent 30a62af commit 690d27b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cubi_tk/sodar/lz_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 690d27b

Please sign in to comment.