MCPcopy
hub / github.com/claude-code-best/claude-code / loadSettingSourcesFromFlag

Function loadSettingSourcesFromFlag

src/main.tsx:636–648  ·  view source on GitHub ↗
(settingSourcesArg: string)

Source from the content-addressed store, hash-verified

634}
635
636function 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()

Callers 1

eagerLoadSettingsFunction · 0.85

Calls 6

parseSettingSourcesFlagFunction · 0.85
setAllowedSettingSourcesFunction · 0.85
resetSettingsCacheFunction · 0.85
logErrorFunction · 0.50
errorMessageFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected