wishthis/node_modules/flagged-respawn/lib/remover.js
2022-01-21 09:28:41 +01:00

13 lines
305 B
JavaScript

var isV8flags = require('./is-v8flags');
module.exports = function(flags, argv) {
var args = argv.slice(0, 1);
for (var i = 1, n = argv.length; i < n; i++) {
var arg = argv[i];
var flag = arg.split('=')[0];
if (!isV8flags(flag, flags)) {
args.push(arg);
}
}
return args;
};