Valohai doesn't have boolean parameters. Instead there is a flag parameter that behaves slightly differently than a standard boolean parameter.
The flag parameter default to just --<PARAMETER_NAME>
when set to true. For example, if you had a flag called saveresults it will be passed as --saveresults when true, and nothing will be passed when it's set to false.
You can define the pass-true-as and pass-false-as attributes if you want to pass both the true and false values.
- name: saveresults
type: flag
pass-true-as: --saveresults=true
pass-false-as: --saveresults=false
That will pass the parameter regardless if it's true or false.
Comments
0 comments
Please sign in to leave a comment.