Open
Description
For example, say I wanted to generate a WDL wrapper for the --lines
flag for the unix tool head
:
from wdlgen import Task
inp = Task.Command.CommandInput(
name='lines',
prefix='--lines',
optional=True
)
print(inp.get_string())
This generates:
~{if defined(lines) then ("--lines " + '"' + lines + '"') else ""}
However, what I want, based on this part of the spec is the much neater:
${"--lines=" + lines}
Or, including quotes:
${'--lines="' + lines + '"'}
How can I do this?
Metadata
Metadata
Assignees
Labels
No labels