cps-interpreter/src/args.ts
2024-02-28 15:21:34 -07:00

14 lines
257 B
TypeScript

const argv = require('minimist')(process.argv.slice(2));
export type Args = {
devMode: boolean;
debug: boolean;
repl: boolean;
};
export const args: Args = {
repl: argv.repl ?? false,
devMode: argv.dev ?? false,
debug: argv.debug ?? false,
};