Skip to content

specifying float or int inputs on command line to cwltool doesn't work #342

Open
@mr-c

Description

@mr-c
  • fix it
  • add a test

make-instructions.cwl

#!/usr/bin/env cwl-runner

cwlVersion: v1.0
class: CommandLineTool

inputs:
  numbers:
    type: int[]
    inputBinding:
      itemSeparator: "+"

baseCommand: [ echo ]

outputs:
 response: stdout
(env) michael@dan:~/workshop$ cwltool make-instructions.cwl  --numbers 1
/home/michael/workshop/env/bin/cwltool 1.0.20170309164828
Resolved 'make-instructions.cwl' to 'file:///home/michael/workshop/make-instructions.cwl'
invalid field `job_order`, expected one of: 'numbers'
Workflow error, try again with --debug for more information:
Invalid job input record:
the `numbers` field is not valid because
  item is invalid because
    `'1'` is not int

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