Skip to content

Commit 47dafb0

Browse files
authored
fix(aws-cdk): add '-h' flag to bring up help (#1274)
We used to only show welp on `--help`, now we also show help on `-h`. This matches user expectation with most commands. Fixes #1259.
1 parent 0de2da8 commit 47dafb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/aws-cdk/bin/cdk.ts

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ async function parseCommandLineArguments() {
6767
.version(VERSION)
6868
.demandCommand(1, '') // just print help
6969
.help()
70+
.alias('h', 'help')
7071
.epilogue([
7172
'If your app has a single stack, there is no need to specify the stack name',
7273
'If one of cdk.json or ~/.cdk.json exists, options specified there will be used as defaults. Settings in cdk.json take precedence.'

0 commit comments

Comments
 (0)