Cargo config.toml [target.xxxxx] runner

[target.riscv32imc-esp-espidf]
runner = "cargo espflash --monitor"

when this runs the output/binary is passed as an argument but this causes issues.

cargo espflash --monitor target\riscv32imc-esp-espidf\debug\hello-world

all I want is "cargo espflash --monitor"

How can I remove the output/binary argument?

You could write a wrapper script that ignores arguments and just runs that command.