This is a test version of Biostars. For the public version, visit https://www.biostars.org.
CWL: specifing one or more argument

Is there a way in Common Workflow Language, to specify one or more values for a given Command line tool input, that will make

./echo.cwl --cheers Hello World!

similar to,

./echo.cwl --cheers "Hello World!"

./echo.cwl --cheers Hello World! raises the following error ./echo.cwl error : unrecognized arguments: World!

args more one inputs cwl

Hello kevin.o.oluoch,

Is this a question about the CWL reference implementation (cwltool)'s dynamic command line interface ability, or about making a CommandLineTool that generates command lines in this matter?

making a CommandLineTool that generates command lines. But i'd appreciate an implementation specific answer, if this is not possible.

1 answer

Hello kevin.o.oluoch,

The short answer is "no".

The dynamic command line capability of cwltool (the reference CWL runner) is for convenience only and is not part of the CWL v1.0 standards.

I don't know if what you are asking is even possible with argparse, but I would entertain a pull request if someone wants to try that out!

Cheers,

Log in to answer this question.