Merge pull request #5162 from loganfsmyth/fix-5161

Break out of argument processing properly.
This commit is contained in:
Logan Smyth 2017-01-19 22:00:58 -08:00 committed by GitHub
commit 396634a51d

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);