cps-interpreter/src/args.ts

12 lines
209 B
TypeScript
Raw Normal View History

2024-02-23 18:46:10 -05:00
const argv = require('minimist')(process.argv.slice(2));
export type Args = {
devMode: boolean;
repl: boolean;
};
export const args: Args = {
repl: argv.repl ?? false,
devMode: argv.dev ?? false,
};