Skip to content

Commit 835c424

Browse files
Anton Khodakmr-c
authored andcommitted
Add nothing to command line if prefix is absent for boolean
1 parent c48d882 commit 835c424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def generate_arg(self, binding): # type: (Dict[Text,Any]) -> List[Text]
230230
return [prefix] if prefix else []
231231
elif value is True and prefix:
232232
return [prefix]
233-
elif value is False or value is None:
233+
elif value is False or value is None or (value is True and not prefix):
234234
return []
235235
else:
236236
l = [value]

0 commit comments

Comments
 (0)