Skip to content

Commit 70dc4e8

Browse files
authored
chore(CLI): add --changeset as an alias for --change-set (#29683)
Some customers have typo'd `--no-changeset` where `--no-change-set` was expected. Make these two aliases of each other since they're easy to mix up, and this flag being valid changes the permissions used by diff, which will cause errors in certain environments. tested manually. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent b148e58 commit 70dc4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk/lib/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ async function parseCommandLineArguments(args: string[]) {
265265
.option('fail', { type: 'boolean', desc: 'Fail with exit code 1 in case of diff' })
266266
.option('processed', { type: 'boolean', desc: 'Whether to compare against the template with Transforms already processed', default: false })
267267
.option('quiet', { type: 'boolean', alias: 'q', desc: 'Do not print stack name and default message when there is no diff to stdout', default: false })
268-
.option('change-set', { type: 'boolean', desc: 'Whether to create a changeset to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role.', default: true }))
268+
.option('change-set', { type: 'boolean', alias: 'changeset', desc: 'Whether to create a changeset to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role.', default: true }))
269269
.command('metadata [STACK]', 'Returns all metadata associated with this stack')
270270
.command(['acknowledge [ID]', 'ack [ID]'], 'Acknowledge a notice so that it does not show up anymore')
271271
.command('notices', 'Returns a list of relevant notices')

0 commit comments

Comments
 (0)