Hello, when migrating to strict parsing and theref...
# nf-schema
s
Hello, when migrating to strict parsing and therefore running
Copy code
export NXF_SYNTAX_PARSER=v2
how can you still print out the help message? running it after adding the plugin gets you
Copy code
nextflow run . --help
Nextflow 25.10.4 is available - Please consider updating your version to it

 N E X T F L O W   ~  version 25.10.3

Launching `./main.nf` [deadly_turing] DSL2 - revision: e81c964cae

Parameter `help` was specified on the command line or params file but is not declared in the script or config
running help after adding help to params (sorry for slightly older nf version)
Copy code
params {
    manifest: Path = null
    help: Boolean = false
}
Copy code
nextflow run . --help
Nextflow 25.10.4 is available - Please consider updating your version to it

 N E X T F L O W   ~  version 25.10.3

Launching `./main.nf` [cranky_sax] DSL2 - revision: bdd07c0bbd

Parameter `manifest` is required but was not specified on the command line, params file, or config
is there a nice way someone knows how to get the help message back?
n
Can you try this again with the latest edge version of nextflow?
NXF_VER=26.02.0-edge
The edge version fixes a lot of issues with the strict syntax. This does not seem related to nf-schema AFAICT
s
Copy code
nextflow run . --help

 N E X T F L O W   ~  version 26.02.0-edge

Launching `./main.nf` [ridiculous_torvalds] revision: bdd07c0bbd

Parameter `manifest` is required but was not specified on the command line, params file, or config
This is in my config
Copy code
plugins {
  id 'nf-schema@2.6.1'
}

validation {
  help {
    enabled = true
  }
}
main is like this
Copy code
params {
    manifest: Path = null
    help: Boolean = false
}

workflow {
    main:
    validateParameters()

    <http://log.info|log.info> paramsSummaryLog(workflow)
I can try setting path to '' but I get a error that path cannot be empty
n
Can you try this:
manifest: Path?
, that's the syntax for optional fields 🙂
s
Copy code
nextflow run . --help

 N E X T F L O W   ~  version 26.02.0-edge

Launching `./main.nf` [crazy_lichterman] revision: 7d54764ef0

ERROR ~ Unexpected error [StackOverflowError]

 -- Check '.nextflow.log' file for details
🤔 1
n
You might be better off moving this discussion to #nextflow-syntax in the Nextflow Slack 😛, I'm not sure what the issue is here
✅ 1
s
Thanks I'll try having a deeper look was just incase someone had seen it before!
n
Good luck!