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

Positional args warning is misleading #2901

Open
awgymer opened this issue Mar 27, 2024 · 0 comments
Open

Positional args warning is misleading #2901

awgymer opened this issue Mar 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@awgymer
Copy link
Contributor

awgymer commented Mar 27, 2024

Description of the bug

The new-ish positional args warning in nf-core pipelines has some misleading behaviour in at least one edge-case.

Using -stub-run/-stub will produce the following:

  WARN: nf-core pipelines do not accept positional arguments. The positional argument `true` has been detected.
        Hint: A common mistake is to provide multiple values to `-profile` separated by spaces. Please use commas to separate profiles instead,e.g., `-profile docker,test`.

It seems that nextflow sets -stub to have a value of "true" when it normalises args which for whatever reason is later treated as an unattached positional arg?

This might be both an nf-core issue in that the check is rathe blunt, but also a nextflow issue because it seems weird to inject a normalised arg value into the positional args?

Command used and terminal output

No response

System information

nextflow 23.10.1

@awgymer awgymer added the bug Something isn't working label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant