scriptcwl icon indicating copy to clipboard operation
scriptcwl copied to clipboard

parse commandline flags/options when validating workflow

Open SpheMakh opened this issue 7 years ago • 2 comments

I have a workflow that uses a cwl-extension which is not part of the standard. I'd like to be able to parse the "--enable-ext" flag to cwltool when validating the workflow.

SpheMakh avatar Aug 28 '18 12:08 SpheMakh

It is not entirely clear to me what enable_ext does. I made a branch (enable_ext) which uses some code copied from cwltool to load/validate workflows using --enable-ext (or my best first guess at doing so). Can you test this?

To save using enable_ext do:

wf.save('workflow.cwl', enable_ext=True)

Also, I would be grateful if you can provide me with an example for testing purposes.

jvdzwaan avatar Sep 03 '18 11:09 jvdzwaan

Example of CommandLineTool that needs enable_ext: https://github.com/apertif/apercal/blob/cwl/cwl/steps/preflag.cwl

jvdzwaan avatar Oct 25 '18 14:10 jvdzwaan