How to change optimization flag in arduino-cli

Hi,

I'd like to change the optimization flag to Og in both core and user file compilation using arduino-cli. How to do that?

Hi @jsm8778. The answer may vary from one Arduino boards platform to another. Please tell us the FQBN of the board(s) for which you want to change the optimization flag.

esp32c3