pub fn load_settings(cwd: &Path, flag: Option<&str>) -> SettingsLoadExpand description
Load and merge the five layers for cwd. flag is the raw --settings
value (a path, or inline JSON when it starts with {).
Env reads happen only here (~ expansion + the home resolver); the core is
load_settings_from so tests inject everything.