diff --git a/lib/cli/options.js b/lib/cli/options.js index 9768206bcc..ed350ce82f 100644 --- a/lib/cli/options.js +++ b/lib/cli/options.js @@ -143,9 +143,7 @@ const parse = (args = [], defaultValues = {}, ...configObjects) => { let flag = pair[0]; if (isNodeFlag(flag, false)) { flag = flag.replace(/^--?/, ''); - return arg.includes('=') - ? acc.concat([[flag, pair[1]]]) - : acc.concat([[flag, true]]); + return acc.concat([[flag, arg.includes('=') ? pair[1] : true]]); } return acc; }, []);