Arduino ide setting avrdude upload options

I would like to use the arduino ide to upload my sketches but in my case I need to disable the ‘-D’ option for avrdude.
I’m using the buspirate to upload the hex file and for that the flash needs to be erased before uploading. I can’t get the stk500 serial protocol to function but this works as well…
Small issue now is that I have to use the command line to upload the sketch.

Thanks,

Milo