cps-interpreter/src/args.ts

14 lines
257 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;
2024-02-28 17:18:38 -05:00
debug: boolean;
2024-02-23 18:46:10 -05:00
repl: boolean;
};
export const args: Args = {
repl: argv.repl ?? false,
devMode: argv.dev ?? false,
2024-02-28 17:18:38 -05:00
debug: argv.debug ?? false,
2024-02-23 18:46:10 -05:00
};