(argv: string[])
| 35 | `; |
| 36 | |
| 37 | function parseArgs(argv: string[]): { command: string; args: string[] } { |
| 38 | const args = argv.slice(2); |
| 39 | const command = args[0] || ""; |
| 40 | return { command, args: args.slice(1) }; |
| 41 | } |
| 42 | |
| 43 | function getFlag(args: string[], flag: string): string | undefined { |
| 44 | const idx = args.indexOf(flag); |
no outgoing calls
no test coverage detected