Fix ignore unknown --no-semi, fixes #2448 (#2450)

This commit is contained in:
Lucas Azzola authored and GitHub committed 2017-07-11 19:52:47 +10:00
1 parent ee822f99b9
commit 25a5e3ffe3
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ const argv = minimist(args, {
},
unknown: param => {
if (param.startsWith("-")) {
const paramName = param.substring(2);
const paramName = param.replace(/--(no-)?/, "");
if (
booleanOptionNames.indexOf(paramName) === -1 &&
stringOptionNames.indexOf(paramName) === -1