(argv, index)
| 90 | } |
| 91 | |
| 92 | function requireValue(argv, index) { |
| 93 | const value = argv[index + 1]; |
| 94 | if (!value || value.startsWith("-")) { |
| 95 | throw new Error(`Missing value for ${argv[index]}`); |
| 96 | } |
| 97 | return value; |
| 98 | } |
| 99 | |
| 100 | function normalizeRoute(route) { |
| 101 | if (!route.startsWith("/")) { |