Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check params for core nextflow flags #604

Closed
ewels opened this issue Apr 27, 2020 · 1 comment
Closed

Check params for core nextflow flags #604

ewels opened this issue Apr 27, 2020 · 1 comment
Labels
template nf-core pipeline/component template
Milestone

Comments

@ewels
Copy link
Member

ewels commented Apr 27, 2020

Literally everyone gets caught out with the classic nextflow gotcha of - or -- at some point. Using one hyphen for a param immediately exits with an error as it's not a recognised nextflow option. However, using two hyphens for a core nextflow option runs silently as it is a valid param.

What we could do to help people with this is to maintain a list of core nextflow flags in the template / pipeline, and just check that we don't have any params set with the same name. If we do, we exit immediately at the start of the pipeline with an error and link to some documentation to explain.

Phil

@ewels ewels added the template nf-core pipeline/component template label Apr 27, 2020
@ggabernet ggabernet added this to the 1.10 milestone Jul 12, 2020
@ewels ewels modified the milestones: 1.10, 1.11 Jul 13, 2020
@ewels
Copy link
Member Author

ewels commented Feb 17, 2021

Implemented in #852

@ewels ewels closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template nf-core pipeline/component template
Projects
None yet
Development

No branches or pull requests

2 participants