diff options
author | Patrik Teivonen <patrik.teivonen@qt.io> | 2023-02-01 13:09:53 +0200 |
---|---|---|
committer | Patrik Teivonen <patrik.teivonen@qt.io> | 2023-02-01 11:13:07 +0000 |
commit | b1bcbc4143a181623706416437d5768867a399ad (patch) | |
tree | 5d628734fcf5af253894808f5629f00198b4fe78 | |
parent | f0fde869f638bfbc6bdd79b8bd945aeea25be678 (diff) |
release_task_reader.py: Fix argparse CLI task type argument
"values" -> "choices"
Change-Id: I3349d16119c5937b0128d9d280d5d9c9b645fddd
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
-rwxr-xr-x | packaging-tools/release_task_reader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging-tools/release_task_reader.py b/packaging-tools/release_task_reader.py index 99fa8cecb..fe6d72ce7 100755 --- a/packaging-tools/release_task_reader.py +++ b/packaging-tools/release_task_reader.py @@ -3,7 +3,7 @@ ############################################################################# # -# Copyright (C) 2022 The Qt Company Ltd. +# Copyright (C) 2023 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of the release tools of the Qt Toolkit. @@ -294,7 +294,7 @@ def main() -> None: parser.add_argument("--task-filter", dest="task_filters", action='append', help="Task include filters per section name in the --config file to match with " "the section name, e.g. 'offline', 'repository', ...") - parser.add_argument("--task-type", dest="task_type", values=[e.value for e in TaskType], + parser.add_argument("--task-type", dest="task_type", choices=[e.value for e in TaskType], help=f"Define the task type: {[e.value for e in TaskType]}") args = parser.parse_args(sys.argv[1:]) |