Bug with nextflow -profile

I’m trying to submit a mag pipeline on my university’s cluster, but keep receiving the same error:

"You used a core Nextflow option with two hyphens: ‘–profile’. Please resubmit with ‘-profile’

This occurs even if I do not specify a profile in my command, as below.

nextflow run nf-core/mag -params-file params.yaml

N E X T F L O W
version 24.10.3 build 5933

I think that’s an nf-core message. Not nextflow. Try dropping the pipeline from your cache and rerunning.

nextflow drop nf-core/mag
nextflow run nf-core/mag -r 3.4.0 -profile test --outdir results