Refactored some tooling.

This commit is contained in:
2021-10-16 20:06:17 -07:00
parent e21ba4858f
commit bb32ca5459
15 changed files with 267 additions and 51 deletions

12
tools/utils/args.js Normal file
View File

@ -0,0 +1,12 @@
const args = process.argv.splice(2).reduce((x,y) => {
const bits = y.split('=');
const name = bits[0].replace('--', '');
const val = bits[1];
x[name] = val;
return x;
}, {});
module.exports = {
args
};