Skip to content

Commit 7324015

Browse files
committed
Support array of integers and floats as command argument parameters
1 parent 6d8c2a4 commit 7324015

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cwltool/argparser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,11 @@ def add_argument(
903903
action = DirectoryAppendAction
904904
else:
905905
action = AppendAction
906+
items = inptype["items"]
907+
if items == "int" or items == "long":
908+
atype = int
909+
elif items == "double" or items == "fload":
910+
atype = float
906911
elif isinstance(inptype, MutableMapping) and inptype["type"] == "enum":
907912
atype = str
908913
elif isinstance(inptype, MutableMapping) and inptype["type"] == "record":

0 commit comments

Comments
 (0)