common-workflow-language / common-workflow-language/user_guide

document how to model a one-or-the-other parameter

Open
#89 5 comments 0 reactions 0 assignees View on GitHub
for miscellaneous page
Dominant language
Common Workflow Language
Stars
42
Forks
65
PR merge metrics
No merged PRs in 30d

Description

From https://groups.google.com/d/msg/common-workflow-language/t7GEjKwJHys/2BvtkhsjXxMJ

```
> I'm not seeing how to model a boolean so that both 'true' and 'false' result
> in differents strings being added to the command line.

One way to do this is to define an "enum" where the symbols are the
two alternate command line flags. Another way is to use an expression
that overrides the default handling of boolean. A third way would be
to define two types with the command line flag in inputBinding.prefix
and use a union.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.