This section of the forum is no longer actively monitored. We are working on a support migration plan that we will share here shortly. Apologies for this inconvenience.
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?