Skip to content

unable to parse type: long as input through cli #385

@jeremiahsavage

Description

@jeremiahsavage

If I input type long through a json file, cwltool can parse the long, but if I use the cli to pass the parameter, I get an error.

emit_long.cwl

#!/usr/bin/env cwl-runner

cwlVersion: v1.0

class: CommandLineTool

inputs:
  - id: input
    type: long
    inputBinding:
      position: 0

outputs:
  - id: output
    type: string
    outputBinding:
      glob: output
      loadContents: true
      outputEval: $(self[0].contents)

stdout: output

baseCommand: [printf]

emit_long.json

{
    "input": 2147483648
}
cwltool emit_long.cwl emit_long.json 
/home/jeremiah/.virtualenvs/cwl/bin/cwltool 1.0.20170510165748
Resolved 'emit_long.cwl' to 'file:///home/jeremiah/emit_long.cwl'
[job emit_long.cwl] /tmp/tmpJNLfZB$ printf \
    2147483648 > /tmp/tmpJNLfZB/output
[job emit_long.cwl] completed success
{
    "output": "2147483648"
}
Final process status is success
cwltool emit_long.cwl --input 2147483648
/home/jeremiah/.virtualenvs/cwl/bin/cwltool 1.0.20170510165748
Resolved 'emit_long.cwl' to 'file:///home/jeremiah/emit_long.cwl'
usage: emit_long.cwl [-h] [job_order]
emit_long.cwl: error: unrecognized arguments: --input
cwltool --version
/home/jeremiah/.virtualenvs/cwl/bin/cwltool 1.0.20170510165748

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions