diff --git a/packages/aws-cdk/lib/cli.ts b/packages/aws-cdk/lib/cli.ts index 3552ac10b2a42..f63c60ca5ced0 100644 --- a/packages/aws-cdk/lib/cli.ts +++ b/packages/aws-cdk/lib/cli.ts @@ -318,7 +318,7 @@ async function initCommandLine() { acknowledgedIssueNumbers: [], ignoreCache: true, }); - } else { + } else if (cmd !== 'version') { await displayNotices({ outdir: configuration.settings.get(['output']) ?? 'cdk.out', acknowledgedIssueNumbers: configuration.context.get('acknowledged-issue-numbers') ?? [], diff --git a/packages/aws-cdk/test/integ/cli/cli.integtest.ts b/packages/aws-cdk/test/integ/cli/cli.integtest.ts index 658bb7d355120..a0deaf1b3c3bc 100644 --- a/packages/aws-cdk/test/integ/cli/cli.integtest.ts +++ b/packages/aws-cdk/test/integ/cli/cli.integtest.ts @@ -32,7 +32,7 @@ integTest('Construct with builtin Lambda function', withDefaultFixture(async (fi await fixture.cdkDestroy('builtin-lambda-function'); })); -integTest('Two ways of shoing the version', withDefaultFixture(async (fixture) => { +integTest('Two ways of showing the version', withDefaultFixture(async (fixture) => { const version1 = await fixture.cdk(['version'], { verbose: false }); const version2 = await fixture.cdk(['--version'], { verbose: false });