aboutsummaryrefslogtreecommitdiff
path: root/src/args.ts
blob: 31fa2ee5ec9a84e66e263dee70eb7c346ae83327 (plain) (blame)
1
2
3
4
5
6
7
8
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);
};