(settingSourcesArg: string)
| 634 | } |
| 635 | |
| 636 | function loadSettingSourcesFromFlag(settingSourcesArg: string): void { |
| 637 | try { |
| 638 | const sources = parseSettingSourcesFlag(settingSourcesArg); |
| 639 | setAllowedSettingSources(sources); |
| 640 | resetSettingsCache(); |
| 641 | } catch (error) { |
| 642 | if (error instanceof Error) { |
| 643 | logError(error); |
| 644 | } |
| 645 | process.stderr.write(chalk.red(`Error processing --setting-sources: ${errorMessage(error)}\n`)); |
| 646 | process.exit(1); |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | /** |
| 651 | * Parse and load settings flags early, before init() |
no test coverage detected