forked from enviPath/enviPy
Current Dev State
This commit is contained in:
16
static/js/ketcher2/node_modules/flagged-respawn/lib/reorder.js
generated
vendored
Normal file
16
static/js/ketcher2/node_modules/flagged-respawn/lib/reorder.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
module.exports = function (flags, argv) {
|
||||
if (!argv) {
|
||||
argv = process.argv;
|
||||
}
|
||||
var args = [argv[1]];
|
||||
argv.slice(2).forEach(function (arg) {
|
||||
var flag = arg.split('=')[0];
|
||||
if (flags.indexOf(flag) !== -1) {
|
||||
args.unshift(arg);
|
||||
} else {
|
||||
args.push(arg);
|
||||
}
|
||||
});
|
||||
args.unshift(argv[0]);
|
||||
return args;
|
||||
};
|
||||
Reference in New Issue
Block a user