From ead63beb09f1a64b611bb9734efab465bfa45ea9 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 31 Aug 2020 11:33:31 +0200 Subject: [PATCH] Fix setting multiple of some CLI flags Fixes #495 --- cli-main.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/cli-main.js b/cli-main.js index 038e85c5..18bd5a53 100755 --- a/cli-main.js +++ b/cli-main.js @@ -56,13 +56,16 @@ const cli = meow(` type: 'string' }, env: { - type: 'string' + type: 'string', + isMultiple: true }, global: { - type: 'string' + type: 'string', + isMultiple: true }, ignore: { - type: 'string' + type: 'string', + isMultiple: true }, space: { type: 'string' @@ -77,10 +80,12 @@ const cli = meow(` type: 'string' }, plugin: { - type: 'string' + type: 'string', + isMultiple: true }, extend: { - type: 'string' + type: 'string', + isMultiple: true }, open: { type: 'boolean' @@ -89,7 +94,8 @@ const cli = meow(` type: 'boolean' }, extension: { - type: 'string' + type: 'string', + isMultiple: true }, esnext: { type: 'boolean'