The PRE_COMMAND_RUN event occurs before a command is executed and lets you modify the input arguments/options
The event listener method receives a Composer\Plugin\PreCommandRunEvent instance.
public const PRE_COMMAND_RUN = 'pre-command-run';