Skip to content

Commit bf02235

Browse files
committed
Fix prefix for optional arrays
1 parent d950619 commit bf02235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wdlgen/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_string(self):
9191
print("separate_array take preferences over: separator, default, true, false")
9292
if self.optional:
9393
# Ugly optional workaround: https://github.com/openwdl/wdl/issues/25#issuecomment-315424063
94-
internal_pref = f'if defined({name}) then "--pre " else ""'
94+
internal_pref = f'if defined({name}) then "{bc}" else ""'
9595
return f'${{{internal_pref}}}${{sep="{bc}" {name}}}'
9696
return f'${{sep=" " prefix("{bc}", {name})}}'
9797

0 commit comments

Comments
 (0)