(arg)
| 202 | } |
| 203 | |
| 204 | function splitVendorArg(arg) { |
| 205 | const i = arg.indexOf('=') |
| 206 | if (i <= 0) { |
| 207 | console.error(`Error: --vendor-cddl expects <namespace>=<file>, got: ${arg}`) |
| 208 | process.exit(1) |
| 209 | } |
| 210 | return [arg.slice(0, i), arg.slice(i + 1)] |
| 211 | } |
| 212 | |
| 213 | const EXTENSION_SUFFIX = 'Extension' |
| 214 |