9 lines
258 B
JavaScript
9 lines
258 B
JavaScript
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());
|