Masks sensitive API key in CLI options before logging.
The command line options to mask
A copy of the options with the API key masked as '****'
Creates a shallow copy to avoid mutating the original options. Only masks the key if it exists.
Masks sensitive API key in CLI options before logging.