Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 7bb37ea

Browse files
committed
Merge pull request #330 from telerik/djenkov/extend-appManager
Allow array options
2 parents ff2c775 + 6903f11 commit 7bb37ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export class Errors implements IErrors {
198198
this.failWithoutHelp("The option '%s' is not supported. To see command's options, use '$ %s help %s'. To see all commands use '$ %s help'.", opt, clientName, process.argv[2], clientName);
199199
} else if (knownOpts[option] !== Boolean && typeof (parsed[opt]) === 'boolean') {
200200
this.failWithoutHelp("The option '%s' requires a value.", opt);
201-
} else if (opt !== "_" && _.isArray(parsed[opt])) {
201+
} else if (opt !== "_" && _.isArray(parsed[opt]) && knownOpts[option] !== Array) {
202202
this.failWithoutHelp("You have set the %s option multiple times. Check the correct command syntax below and try again.", opt);
203203
} else if (knownOpts[option] === String && helpers.isNullOrWhitespace(parsed[opt])) {
204204
this.failWithoutHelp("The option '%s' requires non-empty value.", opt);

0 commit comments

Comments
 (0)