We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
This section of the forum is now closed; we are working on a new support model for WDL that we will share here shortly. For Cromwell-specific issues, see the Cromwell docs and post questions on Github.
Optional WDL Inputs to Toggle Flag
The WDL Spec describes a situation similar to what I'm trying to do here:
In this case, I assume that Cromwell knows that it should do the "--val" here because of the concatenation with the val parameters contents. However, my problem is that I do not want to concatenate the contents of val, because my flag is a toggle that does not take a parameter. So what I want is that if val is specified, I just want:
python script.py --val
and if it is not, I want
How can I accomplish this with the constraints of the WDL language?