Skip to content

Commit

Permalink
fix(aws-cdk): add '-h' flag to bring up help (#1274)
Browse files Browse the repository at this point in the history
We used to only show welp on `--help`, now we also show help on `-h`.
This matches user expectation with most commands.

Fixes #1259.
  • Loading branch information
rix0rrr authored Dec 4, 2018
1 parent 0de2da8 commit 47dafb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/aws-cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ async function parseCommandLineArguments() {
.version(VERSION)
.demandCommand(1, '') // just print help
.help()
.alias('h', 'help')
.epilogue([
'If your app has a single stack, there is no need to specify the stack name',
'If one of cdk.json or ~/.cdk.json exists, options specified there will be used as defaults. Settings in cdk.json take precedence.'
Expand Down

0 comments on commit 47dafb0

Please sign in to comment.