You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python -m cwltool test.cwl --param one --param two
/Users/th10/checkouts/cwltool/cwltool/__main__.py 1.0.20180509130025
Resolved 'test.cwl' to 'file:///Users/th10/checkouts/cwltool/test.cwl'
[job test.cwl] /private/tmp/docker_tmpq_xbceae$ true \
--before_prefix \
'one two' \
--arr_prefix \
one \
--arr_prefix \
two
[job test.cwl] completed success
{}
Final process status is success
is generating values as well as bind_input splitting up the list and feeding each part into bind_input, hence the generation of the interpolated value of one two twice.
Your Environment
cwltool version: 1.0.20170816094652
The text was updated successfully, but these errors were encountered:
Same output with the latest version of cwltool and using v1.0 or v1.2.
I think the type element is a CommandInputRecordSchema, and its inputBinding is telling cwltool to add the values of that parameter to the command line.
If the idea was to add one two to both --arr_prefix and to --before_prefix (i.e. re-use the same values), I think it would be simpler to create two inputs like this.
(venv) kinow@ranma:~/Development/python/workspace/cwltool$ cwltool /tmp/test.cwl --param a --param b
INFO /home/kinow/Development/python/workspace/cwltool/venv/bin/cwltool 3.1.20220502060230
INFO Resolved '/tmp/test.cwl' to 'file:///tmp/test.cwl'
INFO [job test.cwl] /tmp/mr6wviq1$ true \
--before_prefix \
'a b' \
--after_prefix \
'a b'
INFO [job test.cwl] completed success
{}
INFO Final process status is success
Inputs
test.cwl:
Output
It looks like
cwltool/cwltool/builder.py
Line 292 in 78f6271
bind_input
splitting up the list and feeding each part intobind_input
, hence the generation of the interpolated value ofone two
twice.Your Environment
The text was updated successfully, but these errors were encountered: