Error: Got unexpected extra argument (run)

On Ubuntu 20.04 for Raspi, connected to a Teensy over USB.

This command is giving an error but it seems correct to me:

platformio run --target upload

Gives this error:

Error: Got unexpected extra argument (run)

Not sure why… Any thoughts?

Closing this question. An alias was redefining platformio.