From a3e82ae9b1e2a27ac1eee8092d58a28bb0d56c0d Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 19 Sep 2019 07:16:31 -0400 Subject: [PATCH] fix(@angular/cli): do not warn on multiple array option use Fixes #15630 --- packages/angular/cli/models/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/cli/models/parser.ts b/packages/angular/cli/models/parser.ts index 2d5dbf7495e6..69610f815ad2 100644 --- a/packages/angular/cli/models/parser.ts +++ b/packages/angular/cli/models/parser.ts @@ -194,7 +194,7 @@ function _assignOption( const v = _coerce(value, option, parsedOptions[option.name]); if (v !== undefined) { if (parsedOptions[option.name] !== v) { - if (parsedOptions[option.name] !== undefined) { + if (parsedOptions[option.name] !== undefined && option.type !== OptionType.Array) { warnings.push( `Option ${JSON.stringify(option.name)} was already specified with value ` + `${JSON.stringify(parsedOptions[option.name])}. The new value ${JSON.stringify(v)} `