8000 Add extra binding on inputs · phenoflow/python-cwlgen@4bc451b · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit 4bc451b

Browse files
committed
Add extra binding on inputs
1 parent 949d686 commit 4bc451b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cwlgen/commandlinetool.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ def get_dict(self):
233233
if "$" not in v:
234234
d[self.namespaces.name][k] = v
235235

236+
if "inputs" not in d:
237+
# Tool can have no inputs but still needs to be bound
238+
d["inputs"] = []
239+
236240
if self.requirements:
237241
d["requirements"] = {r.get_class(): r.get_dict() for r in self.requirements}
238242
if self.hints:

0 commit comments

Comments
 (0)
0