holy-heck-i-really-like-stats/calc_main.js

9 lines
258 B
JavaScript
Raw Permalink Normal View History

2023-04-26 17:01:02 +10:00
import { parseAndCalculate } from "./calc.js";
// FIXME: issue with using execArgv.
let args = process.argv.slice(2);
if (args[0] === "--") args = args.slice(1);
const line = args.join(" ");
const res = parseAndCalculate(line);
console.log(res.fullDesc());