MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / loadSettingSourcesFromFlag

Function loadSettingSourcesFromFlag

source code/main.tsx:486–498  ·  view source on GitHub ↗
(settingSourcesArg: string)

Source from the content-addressed store, hash-verified

484 }
485}
486function loadSettingSourcesFromFlag(settingSourcesArg: string): void {
487 try {
488 const sources = parseSettingSourcesFlag(settingSourcesArg);
489 setAllowedSettingSources(sources);
490 resetSettingsCache();
491 } catch (error) {
492 if (error instanceof Error) {
493 logError(error);
494 }
495 process.stderr.write(chalk.red(`Error processing --setting-sources: ${errorMessage(error)}\n`));
496 process.exit(1);
497 }
498}
499
500/**
501 * 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