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); };