(settingSourcesArg: string)
| 482 | } |
| 483 | } |
| 484 | function loadSettingSourcesFromFlag(settingSourcesArg: string): void { |
| 485 | try { |
| 486 | const sources = parseSettingSourcesFlag(settingSourcesArg); |
| 487 | setAllowedSettingSources(sources); |
| 488 | resetSettingsCache(); |
| 489 | } catch (error) { |
| 490 | if (error instanceof Error) { |
| 491 | logError(error); |
| 492 | } |
| 493 | process.stderr.write(chalk.red(`Error processing --setting-sources: ${errorMessage(error)}\n`)); |
| 494 | process.exit(1); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | /** |
| 499 | * Parse and load settings flags early, before init() |
no test coverage detected