New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(CLI): support multiple env options #9131
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9131 +/- ##
==========================================
+ Coverage 87.12% 87.14% +0.01%
==========================================
Files 294 294
Lines 11253 11253
==========================================
+ Hits 9804 9806 +2
+ Misses 1449 1447 -2
Continue to review full report at Codecov.
|
@@ -16,7 +16,7 @@ const baseArgsSchema = { | |||
}; | |||
|
|||
const resolveArgsSchema = (commandOptionsSchema) => { | |||
const options = { boolean: new Set(), string: new Set(), alias: new Map() }; | |||
const options = { boolean: new Set(), string: new Set(), alias: new Map(), multiple: new Set() }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -38,7 +38,7 @@ describe('test/unit/lib/cli/resolve-input.test.js', () => { | |||
}); | |||
|
|||
it('should recognize --help as boolean', async () => { | |||
expect(data.options.version).to.equal(true); | |||
expect(data.options.help).to.equal(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lewgordon great find! Thank you
Sorry about the lack of a Github bug. I can make one if need be. This is my reference, though: https://forum.serverless.com/t/unexpected-multiple-env/14401