Break out of argument processing properly.

This commit is contained in:
Logan Smyth 2017-01-19 21:47:11 -08:00
parent fabfc463f1
commit 6528fe105e

View File

@ -103,7 +103,7 @@ if (program.eval || program.print) {
let i = 0;
let ignoreNext = false;
args.forEach(function (arg, i2) {
args.some(function (arg, i2) {
if (ignoreNext) {
ignoreNext = false;
return;
@ -116,7 +116,7 @@ if (program.eval || program.print) {
}
} else {
i = i2;
return false;
return true;
}
});
args = args.slice(i);