Skip to content

Commit fbecf5f

Browse files
committed
parse enum type in generate_parser()
1 parent a7fb17f commit fbecf5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ def generate_parser(toolparser, tool, namemap):
277277
action = cast(argparse.Action, FileAppendAction)
278278
else:
279279
action = "append"
280-
280+
elif isinstance(inptype, dict) and inptype["type"] == "enum":
281+
atype = str
281282
if inptype == "string":
282283
atype = str
283284
elif inptype == "int":

0 commit comments

Comments
 (0)