diff --git a/lib/commonOpts.ts b/lib/commonOpts.ts index fb0b58a81..85794216f 100644 --- a/lib/commonOpts.ts +++ b/lib/commonOpts.ts @@ -81,11 +81,13 @@ export function addTestingOptions(yargs: Argv): Argv { } export function addUseEnvironmentOptions(yargs: Argv): Argv { - return yargs.option('use-env', { - describe: i18n(`${i18nKey}.options.useEnv.describe`), - type: 'boolean', - default: false, - }); + return yargs + .option('use-env', { + describe: i18n(`${i18nKey}.options.useEnv.describe`), + type: 'boolean', + default: false, + }) + .conflicts('use-env', 'account'); } export function setLogLevel(options: Arguments<{ debug?: boolean }>): void {