From 47dafb0e5c70e0d5ea8f15bdc74a033596c3a1a2 Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Tue, 4 Dec 2018 10:05:21 +0100 Subject: [PATCH] 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. --- packages/aws-cdk/bin/cdk.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/aws-cdk/bin/cdk.ts b/packages/aws-cdk/bin/cdk.ts index 43ad09fe0e94d..74b7c47338ad9 100644 --- a/packages/aws-cdk/bin/cdk.ts +++ b/packages/aws-cdk/bin/cdk.ts @@ -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.'