Skip to content

Commit

Permalink
Merge pull request #771 from aws-ia/list_args
Browse files Browse the repository at this point in the history
Accounding for list argument types
  • Loading branch information
andrew-glenn authored Dec 13, 2022
2 parents c5b9575 + 624f82d commit cdb9e5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.9.34
current_version = 0.9.35
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<build>\d+))?
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.34
0.9.35
2 changes: 2 additions & 0 deletions taskcat/_cli_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cdb9e5a

Please sign in to comment.