Skip to content

Commit a3e82ae

Browse files
clydinvikerman
authored andcommitted
fix(@angular/cli): do not warn on multiple array option use
Fixes #15630
1 parent 598a138 commit a3e82ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/cli/models/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function _assignOption(
194194
const v = _coerce(value, option, parsedOptions[option.name]);
195195
if (v !== undefined) {
196196
if (parsedOptions[option.name] !== v) {
197-
if (parsedOptions[option.name] !== undefined) {
197+
if (parsedOptions[option.name] !== undefined && option.type !== OptionType.Array) {
198198
warnings.push(
199199
`Option ${JSON.stringify(option.name)} was already specified with value `
200200
+ `${JSON.stringify(parsedOptions[option.name])}. The new value ${JSON.stringify(v)} `

0 commit comments

Comments
 (0)