-
Notifications
You must be signed in to change notification settings - Fork 651
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
No project name was specified #3559
Comments
Hm.. If you place the |
Looks like the run command just expects the project name to be the first argument: nextflow/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy Lines 279 to 283 in 41510e8
|
also, using |
Good point, @maxulysse ! |
I think this is the expected behavior. Not just with Nextflow but with CLIs in general -- positional args must always come before named args. However, I noticed the docs are incorrect: https://nextflow.io/docs/latest/cli.html#run $ nextflow run [options] [project] @mribeirodantas can you correct the docs here? I would also check the entire CLI docs page to see if this error was made for other commands. And the CLI output in Nextflow. |
Sure! I saw the docs page yesterday and was wondering if this was really true. I will work on that. |
It would help to clarify in the
|
I took another look here and it turns out I gave the wrong diagnosis. The problem is that some options like We are working on a new CLI called nf run --with-trace --with-report -- main.nf The double dash allows you to separate positional arguments from optional arguments. But it doesn't seem to work with the current CLI. So I will tie this issue to the new CLI effort. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug report
If one runs
nextflow run
with-with-report
or-with-trace
(and provides a "main" nextflow workflow file as input, such asmain.nf
), then one gets the error:There is no info in https://www.nextflow.io/docs/latest/tracing.html that I can find on how to set the project name. I have tried to set the project name via:
...but that still results in the issue.
Expected behavior and actual behavior
Clear information on how to set the project name when using
-with-report
or-with-trace
.Steps to reproduce the problem
Nextflow version: 22.10.4.5836
Installed Nextflow via bioconda
Run
Config
Environment
The text was updated successfully, but these errors were encountered: