diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-23 16:46:10 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-23 17:04:54 -0700 |
commit | d0d6aae1e56428f597f69f5c9cfb261afe671f5d (patch) | |
tree | ef1d572f2bda148ef1d13602b6b4117be8e18aa4 /src/args.ts | |
download | cps-interpreter-d0d6aae1e56428f597f69f5c9cfb261afe671f5d.tar.gz cps-interpreter-d0d6aae1e56428f597f69f5c9cfb261afe671f5d.zip |
initial parser
Diffstat (limited to 'src/args.ts')
-rw-r--r-- | src/args.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/args.ts b/src/args.ts new file mode 100644 index 0000000..c5f66fc --- /dev/null +++ b/src/args.ts @@ -0,0 +1,11 @@ +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, +}; |