Skip to content

Commit d6f5207

Browse files
rix0rrrElad Ben-Israel
authored andcommitted
fix(cli): exclusively is also '-e' for destroy (#3216)
Make the short option for `--exclusively` always `-e` (used to be `-e` for `synth` and `deploy`, but `-x` for `destroy). Fixes #2367.
1 parent 9948bfd commit d6f5207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk/bin/cdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function parseCommandLineArguments() {
5858
.option('ci', { type: 'boolean', desc: 'Force CI detection. Use --no-ci to disable CI autodetection.', default: process.env.CI !== undefined })
5959
.option('tags', { type: 'array', alias: 't', desc: 'tags to add to the stack (KEY=VALUE)', nargs: 1, requiresArg: true })
6060
.command('destroy [STACKS..]', 'Destroy the stack(s) named STACKS', yargs => yargs
61-
.option('exclusively', { type: 'boolean', alias: 'x', desc: 'only deploy requested stacks, don\'t include dependees' })
61+
.option('exclusively', { type: 'boolean', alias: 'e', desc: 'only deploy requested stacks, don\'t include dependees' })
6262
.option('force', { type: 'boolean', alias: 'f', desc: 'Do not ask for confirmation before destroying the stacks' }))
6363
.command('diff [STACKS..]', 'Compares the specified stack with the deployed stack or a local template file, and returns with status 1 if any difference is found', yargs => yargs
6464
.option('exclusively', { type: 'boolean', alias: 'e', desc: 'only diff requested stacks, don\'t include dependencies' })

0 commit comments

Comments
 (0)