common-workflow-language / common-workflow-language/cwltool

would make sense to support CLI argument for an input with two types: `File` and `string`

Open
#2,251 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

Hello!

we have a case when an input to a `CommandLineTool` can be `File` or `string`. A minimal example is here:

https://github.com/common-workflow-language/cwltool/compare/main...volodymyrss:cwltool:main

However, this does not allow to make a cwltool CLI argument, it seems intentionally:

https://github.com/common-workflow-language/cwltool/blob/main/cwltool/argparser.py#L965

Would it make sense that this particular case of two arguments would also be supported? We could try to help with implementation if you think it makes sense.

Thank you!

Volodymyr

/cc @maxnoe

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.