If an argument valueFrom expression is code fragment, e.g.
arguments:
- prefix: -c
valueFrom: |
import json
fileString = []
with open("$(inputs.inputFile.path)", "r") as inputFile:
for line in inputFile:
fileString.append(line)
with open("cwl.output.json", "w") as output:
json.dump({"fileString": fileString}, output)
If an argument
valueFrom
expression is code fragment, e.g.cwlexec cannot be evaluated correctly