CWL: specifing one or more argument
1
0
Entering edit mode
6.8 years ago

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 • 1.2k views
ADD COMMENT
0
Entering edit mode

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?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode
6.5 years ago

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,

ADD COMMENT

Login before adding your answer.

Traffic: 1693 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6