Skip to content

Commit b48b5c8

Browse files
committed
GREY-1789: Unify prefix & suffix shortcuts across commands
1 parent e19080f commit b48b5c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/lambda-deploy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ program
3232
.option('-s, --stage <stage>', 'Stage name')
3333
.option('-r, --region <region>', 'Region')
3434
.option('-e, --environment <env>', 'Environment Variables to embed as key-value pairs', parseEnvironment, {})
35-
.option('--resource-prefix <prefix>', 'Prefix to use with all lambda-tools created AWS resources, defaults to \'\' (empty string)')
36-
.option('--resource-suffix <suffix>', 'Suffix to use with all lambda-tools created AWS resources, defaults to \'\' (empty string)')
35+
.option('-rp, --resource-prefix <prefix>', 'Prefix to use with all lambda-tools created AWS resources, defaults to \'\' (empty string)')
36+
.option('-rs, --resource-suffix <suffix>', 'Suffix to use with all lambda-tools created AWS resources, defaults to \'\' (empty string)')
3737
.option('--dry-run', 'Simply generate files that would be used to update the stack and API')
3838
.option('--exclude [list]', 'Packages to exclude from bundling', function(val) { return val.split(','); })
3939
.option('--clean', 'Force a clean build where cached bundles are not used')

bin/lambda-setup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const createResources = require('../lib/setup/create-cf-resources.js');
1313

1414
program
1515
.option('-r, --region <string>', 'Region to setup in, if not set otherwise, defaults to \'us-east-1\'')
16-
.option('-p, --resource-prefix <string>', 'Prefix to use with all lambda-tools created AWS resources, defaults to \'\' (empty string)')
17-
.option('-s, --resource-suffix <string>', 'Suffix to use with all lambda-tools created AWS resources, defaults to \'\' (empty string)')
16+
.option('-rp, --resource-prefix <string>', 'Prefix to use with all lambda-tools created AWS resources, defaults to \'\' (empty string)')
17+
.option('-rs, --resource-suffix <string>', 'Suffix to use with all lambda-tools created AWS resources, defaults to \'\' (empty string)')
1818
.option('--no-color', 'Turn off ANSI coloring in output')
1919
.parse(process.argv);
2020

0 commit comments

Comments
 (0)