(name: string)
| 15 | const args = process.argv.slice(2); |
| 16 | const hasArg = (name: string): boolean => args.includes(name); |
| 17 | const argValue = (name: string): string | undefined => { |
| 18 | const index = args.indexOf(name); |
| 19 | return index >= 0 ? args[index + 1] : undefined; |
| 20 | }; |
| 21 | |
| 22 | const dryRun = hasArg("--dry-run"); |
| 23 | const schemaOnly = hasArg("--schema-only"); |