()
| 209 | } |
| 210 | |
| 211 | function main() { |
| 212 | const argv = process.argv.slice(2); |
| 213 | if (argv.length !== 2) { |
| 214 | console.error('Must include 2 arguments.'); |
| 215 | process.exit(1); |
| 216 | } |
| 217 | |
| 218 | const [inPath, outPath] = argv; |
| 219 | |
| 220 | try { |
| 221 | generate(inPath, outPath); |
| 222 | } catch (error) { |
| 223 | console.error('An error happened:'); |
| 224 | console.error(error); |
| 225 | process.exit(127); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | main(); |
no test coverage detected