Skip to content

Conversation

@ewels
Copy link
Member

@ewels ewels commented Jan 16, 2026

Fix parsing error from Nextflow strict syntax mode, affecting a bunch of pipelines.

See nf-core/rnavar#278 for initial repro and fix.

See also nf-core/tools#3986

Fix parsing error from Nextflow strict syntax mode, affecting a bunch of pipelines.

See nf-core/rnavar#278 for initial repro and fix.

See also nf-core/tools#3986
log.info paramsHelp(
help_options,
params.help instanceof String ? params.help : "",
(params.help instanceof String && params.help != "true") ? params.help : "",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(params.help instanceof String && params.help != "true") ? params.help : "",
(params.help instanceof String && params.help = "true") ? params.help : "",

If I don't misunderstand what is happening here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I don't think that's right. It's checking to see if it's just the flag or whether a string was passed. If it's just a flag and it's coerced into a string it'll be a string "true", and we don't want to print that. Otherwise we do.

I think that's right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Written out logic:

if ( (params.help is a string) and (params.help is not "true") ){
    return params.help (whatever it is, some string)
} else {
   return an empty string
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants