tom-tan/zatsu-cwl-generator

Argument after option does not introduce a correct input parameter

tom-tan opened this issue · 0 comments

In the following example, it introduce an input parameter 5 but it should be n because the previous argument of 5 is -n.

$ ./zatsu_cwl_generator.d "head -n 5 ccc.txt > output.txt" | tee head.cwl
class: CommandLineTool
cwlVersion: v1.0
baseCommand: head
arguments:
  - -n
  - $(inputs.5)
  - $(inputs.ccc_txt)
inputs:
  - id: 5
    type: int
  - id: ccc_txt
    type: File
outputs:
  - id: out
    type: stdout
stdout: output.txt