Expected 'addPluginSbtFile'

When I run sbt from the command line, I get some funny error messages I don’t understand. Can someone help me understand them?

Here is the sbt command line I’m using:

sbt -Dsbt.log.noformat=true "set parallelExecution in Test := false" testOnly -- -l enhancement

Here is the tail of the output log,

[info] Run completed in 7 minutes, 58 seconds.
[info] Total number of tests run: 50
[info] Suites: completed 9, aborted 0
[info] Tests: succeeded 50, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 494 s (08:14), completed Mar 31, 2021, 4:33:52 PM
[error] Not a valid command: --
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected 'addPluginSbtFile'
[error] --
[error]   ^

I’m trying to use the command line suggested here.

Seems I get the same error with sbt 1.4.9 as with 1.3.13

You have to give each sbt command as a single argument to the sbt launcher:

sbt -Dsbt.log.noformat=true "set parallelExecution in Test := false" 'testOnly -- -l enhancement'