From 624f82d3355fb2487ca9f4628c8dc41eeeeec276 Mon Sep 17 00:00:00 2001 From: Andrew Glenn <29951057+andrew-glenn@users.noreply.github.com> Date: Tue, 13 Dec 2022 16:19:23 -0600 Subject: [PATCH] Accounding for list argument types --- .bumpversion.cfg | 2 +- VERSION | 2 +- taskcat/_cli_core.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 8892db5b..1a7b16e6 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.9.34 +current_version = 0.9.35 commit = False tag = False parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\.(?P[a-z]+)(?P\d+))? diff --git a/VERSION b/VERSION index 1b7b4355..8e99e294 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.34 +0.9.35 diff --git a/taskcat/_cli_core.py b/taskcat/_cli_core.py index 935451ba..8d57ec28 100644 --- a/taskcat/_cli_core.py +++ b/taskcat/_cli_core.py @@ -132,6 +132,8 @@ def _get_params(self, item): kwargs.update( {"required": required, "default": default, "dest": param.name} ) + if param.annotation == list: + kwargs.update({"nargs":"+"}) if action == "store": kwargs.update({"type": val_type}) if required: