Skip to content

Commit

Permalink
chore: Fix typo (#15436)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
akash1810 authored Jul 6, 2021
1 parent d779be0 commit 865b266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cdk-app> COMMAND')
Expand Down Expand Up @@ -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' }),
)
Expand Down

0 comments on commit 865b266

Please sign in to comment.