I am trying to run a tool definition on the command line without a job document. It is unclear to me how to pass exclusive parameters,
cwl-runner Tools/ls.tool.yaml --mydir Data/Inputs/ --myfile Tools/ls.tool.yaml --bySize
/usr/local/bin/cwl-runner 1.0.20170329142446
Resolved 'Tools/ls.tool.yaml' to 'file:///pipeline/CWL/Tools/ls.tool.yaml'
usage: Tools/ls.tool.yaml [-h] --mydir MYDIR --myfile MYFILE [job_order]
Tools/ls.tool.yaml: error: unrecognized arguments: --bySize
Tool definition:
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [ls , .]
requirements:
- class: InlineJavascriptRequirement
- class: InitialWorkDirRequirement
listing: |
${
var listing = inputs.mydir.listing;
listing.push(inputs.myfile);
return listing;
}
stdout: ls.log
stderr: error.log
inputs:
mydir:
type: Directory
myfile:
type: File
exclusive_parameters:
type:
- type: record
name: listingByTime
fields:
long_listing:
type: boolean
inputBinding:
prefix: -ltr
- type: record
name: size
fields:
bySize:
type: boolean
inputBinding:
prefix: -S
outputs:
output:
type: stdout
error:
type: stderr