1 const reorder = require('./lib/reorder');
2 const respawn = require('./lib/respawn');
4 module.exports = function (flags, argv, execute) {
6 throw new Error('You must specify flags to respawn with.');
9 throw new Error('You must specify an argv array.');
12 var reordered = reorder(flags, argv);
13 var ready = JSON.stringify(argv) === JSON.stringify(reordered);
15 proc = respawn(reordered);