We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d9411 commit 5eda8c1Copy full SHA for 5eda8c1
wdlgen/task.py
@@ -167,8 +167,8 @@ def get_string(self):
167
168
stroptions = "".join(o + " " for o in options)
169
170
- if self.optional and not default and not is_flag:
171
- prewithquotes = f'"{bc}" + ' if bc.strip() else ""
+ prewithquotes = f'"{bc}" + ' if bc.strip() else ""
+ if self.optional and not default and not is_flag and prewithquotes:
172
# Option 1: We apply quotes are value, Option 2: We quote whole "prefix + name" combo
173
full_token = (
174
f"{prewithquotes} '\"' + {name} + '\"'"
0 commit comments