Passing a quoted string starting with -
to nextflow CLI has unexpected behaviour
#5376
Labels
-
to nextflow CLI has unexpected behaviour
#5376
Bug report
Expected behavior and actual behavior
I would anticipate that passing arguments such as
--minimap2_args '-k15'
would result in the parameterminimap2_args
being set to the string-k15
. However, nextflow complains:Note that the situation is different if the user provides
--minimap2_args '-k 15'
. The paramater is set to the string-k 15
as expected, so it is not simply that anything starting with'-
is taken as an argument for nextflow itself.Steps to reproduce the problem
Program output
There's no nextflow.log produced.
Environment
Additional context
There's a difference in behaviour compared to when the arguments are provided in a config file as:
Our users caught this as our documentation contains a CLI invocation built from the contents of the config file, we did not catch it in testing as our CI pipelines run
nextflow -c config ....
instead.The text was updated successfully, but these errors were encountered: