From 865b2660a01fa819afd75cc10aab344b8535896c Mon Sep 17 00:00:00 2001 From: Akash Askoolum Date: Tue, 6 Jul 2021 22:27:02 +0100 Subject: [PATCH] chore: Fix typo (#15436) Correct a small typo: `initTemplateLanuages` -> `initTemplateLanguages`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk/bin/cdk.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk/bin/cdk.ts b/packages/aws-cdk/bin/cdk.ts index f38f5252c304d..f072a557c4783 100644 --- a/packages/aws-cdk/bin/cdk.ts +++ b/packages/aws-cdk/bin/cdk.ts @@ -38,7 +38,7 @@ async function parseCommandLineArguments() { // // ./prog --arg one --arg two position => will parse to { arg: ['one', 'two'], _: ['positional'] }. - const initTemplateLanuages = await availableInitLanguages(); + const initTemplateLanguages = await availableInitLanguages(); return yargs .env('CDK') .usage('Usage: cdk -a COMMAND') @@ -118,7 +118,7 @@ async function parseCommandLineArguments() { .option('fail', { type: 'boolean', desc: 'Fail with exit code 1 in case of diff', default: false }) .command('metadata [STACK]', 'Returns all metadata associated with this stack') .command('init [TEMPLATE]', 'Create a new, empty CDK project from a template.', yargs => yargs - .option('language', { type: 'string', alias: 'l', desc: 'The language to be used for the new project (default can be configured in ~/.cdk.json)', choices: initTemplateLanuages }) + .option('language', { type: 'string', alias: 'l', desc: 'The language to be used for the new project (default can be configured in ~/.cdk.json)', choices: initTemplateLanguages }) .option('list', { type: 'boolean', desc: 'List the available templates' }) .option('generate-only', { type: 'boolean', default: false, desc: 'If true, only generates project files, without executing additional operations such as setting up a git repo, installing dependencies or compiling the project' }), )