fix(cli): resolve --api-key option being ignored in mon local-install

The --api-key option was defined both globally on the program and locally on the local-install subcommand. Commander.js routes the option to the global definition, leaving opts.apiKey undefined in the subcommand.

Fix by checking program.opts().apiKey as fallback for the subcommand's opts.apiKey.

https://gitlab.com/postgres-ai/platform/-/issues/346

Edited by Nikolay Samokhvalov

Merge request reports

Loading