diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-07-28 14:10:38 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-07-28 14:10:38 -0700 |
| commit | ad74ff999589e0df2b60ba6e94362ed5215af312 (patch) | |
| tree | a10800668c18c7b9f7222ac9fabbca01b941f834 /src/args.ts | |
| parent | 452c41a75aa2f9036614d677fda3867221db959e (diff) | |
| download | mon.hatecomputers.club-ad74ff999589e0df2b60ba6e94362ed5215af312.tar.gz mon.hatecomputers.club-ad74ff999589e0df2b60ba6e94362ed5215af312.zip | |
something
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); +}; |
