NLeSC / scriptcwl

Create cwl workflows by writing a simple Python script
https://scriptcwl.readthedocs.io/
Apache License 2.0
40 stars 9 forks source link

Warn when adding a workflow input with the same name as a previously added workflow input #96

Closed jvdzwaan closed 6 years ago

jvdzwaan commented 6 years ago

This happens when copy/pasting wf.add_input() and you forget to change the name.

This does not lead to a validation error (if the types are the same), and causes cwltool to use the second workflow input instead of the first. This leads to unexpected results.

jvdzwaan commented 6 years ago

Actually, it is probably better if an error is raised (instead of a warning).