(settingSourcesArg: string)
| 495 | } |
| 496 | } |
| 497 | function loadSettingSourcesFromFlag(settingSourcesArg: string): void { |
| 498 | try { |
| 499 | const sources = parseSettingSourcesFlag(settingSourcesArg); |
| 500 | setAllowedSettingSources(sources); |
| 501 | resetSettingsCache(); |
| 502 | } catch (error) { |
| 503 | if (error instanceof Error) { |
| 504 | logError(error); |
| 505 | } |
| 506 | process.stderr.write(chalk.red(`Error processing --setting-sources: ${errorMessage(error)}\n`)); |
| 507 | process.exit(1); |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | /** |
| 512 | * Parse and load settings flags early, before init() |
no test coverage detected