I often need support optional input as File or as array of File entries. For example, I want to create command line option like the following:
--opt A --opt B --opt C
I can define the following in cwl:
inputs:
opt:
type:
- "null"
- type: array
items: File
inputBinding:
prefix: --opt
However this won't support single element input if not as an array. I wish I could do the following:
inputs:
opt:
type:
- "null"
- type: array
items: File
inputBinding:
prefix: --opt
- type: File
inputBinding:
prefix: --opt
It will complain about the - type: File
as
* the `type` field is not valid because
the value 'File' is not a valid Record_symbol, expected
'record'
Any help would be appreciated.