diff options
Diffstat (limited to 'src/args.ts')
| -rw-r--r-- | src/args.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/args.ts b/src/args.ts new file mode 100644 index 0000000..31fa2ee --- /dev/null +++ b/src/args.ts @@ -0,0 +1,9 @@ +export interface Args { + testFile: string; +} + +export const parseArgs = (argv: string[]): Args => { + const useful = argv.slice(2); // skip bun path and script path + + const flags = useful.map((x, i) => x.startsWith("--") && i); +}; |
