Skip to content

Commit

Permalink
feat(cdk): use hyphenated command-line argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Epstein committed Dec 17, 2019
1 parent ad525e5 commit 0370544
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 @@ -36,7 +36,7 @@ async function parseCommandLineArguments() {
.option('verbose', { type: 'boolean', alias: 'v', desc: 'Show debug logs', default: false })
.option('profile', { type: 'string', desc: 'Use the indicated AWS profile as the default environment', requiresArg: true })
.option('proxy', { type: 'string', desc: 'Use the indicated proxy. Will read from HTTPS_PROXY environment variable if not specified.', requiresArg: true })
.option('caBundlePath', { type: 'string', desc: 'Path to CA certificate to use when validating HTTPS requests. Will read from AWS_CA_BUNDLE environment variable if not specified.', requiresArg: true })
.option('ca-bundle-path', { type: 'string', desc: 'Path to CA certificate to use when validating HTTPS requests. Will read from AWS_CA_BUNDLE environment variable if not specified.', requiresArg: true })
.option('ec2creds', { type: 'boolean', alias: 'i', default: undefined, desc: 'Force trying to fetch EC2 instance credentials. Default: guess EC2 instance status.' })
.option('version-reporting', { type: 'boolean', desc: 'Include the "AWS::CDK::Metadata" resource in synthesized templates (enabled by default)', default: undefined })
.option('path-metadata', { type: 'boolean', desc: 'Include "aws:cdk:path" CloudFormation metadata for each resource (enabled by default)', default: true })
Expand Down Expand Up @@ -108,7 +108,7 @@ async function initCommandLine() {
const aws = new SDK({
profile: argv.profile,
proxyAddress: argv.proxy,
caBundlePath: argv.caBundlePath,
caBundlePath: argv['ca-bundle-path'],
ec2creds: argv.ec2creds,
});

Expand Down

0 comments on commit 0370544

Please sign in to comment.