Closed mateuszpawlik closed 6 months ago
Simply adding params.help = some_value
to your nextflow.config
file should do the trick :)
This actually triggers the help message without executing the pipeline or an error.
Setting params.help = "bla"
causes ERROR ~ Specified param 'bla' does not exist in JSON schema.
Setting params.help = 42
cases printing the help message.
Huh, that's weird. That's not supposed to happen... @mirpedrol do you know what could be causing this?
It should be initialized as false params.help = false
, otherwise it will be interpreted as true, and this show the help message.
You may also need to add this parameter to the nextflow schema to avoid the does not exist in JSON schema
error.
I added params.help = false
separately to my other params { ... }
The warning is gone and it didn't complain that it is not in the schema.
With Nextflow 23.10.1 I get the following warning:
Where and how should I initialize
help
parameter?