Skip to content

Commit

Permalink
fix(CLI): Fix handling of singular --config param
Browse files Browse the repository at this point in the history
Fixes #7736
  • Loading branch information
medikoo committed May 15, 2020
1 parent ae3adb6 commit 7bcad68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/resolveCliInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = _.memoize(inputArray => {
}
if (!options.verbose) delete options.verbose;

if (options.config && options.config.length > 1) {
if (Array.isArray(options.config)) {
const configPaths = options.config;
throw new ServerlessError(
[
Expand Down

2 comments on commit 7bcad68

@AhmedFat7y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh a test of single value would have exposed this
Will be more careful next time :)

@medikoo
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AhmedFat7y no worries, it happens. I also should have pick that in a review

Please sign in to comment.