Skip to main content

cli_flag_map

Function cli_flag_map 

Source
pub fn cli_flag_map() -> HashMap<String, String>
Expand description

Map every settings leaf (dotted path) to its user-facing CLI flag(s).

Walks start’s flattened SettingsArgs via clap reflection so the /settings UI doesn’t have to hand-maintain a parallel table that drifts from the actual flags. Output format: "--registry-data-dir, -d" (long, then short if any). Args whose id doesn’t follow the <prefix>-<field> convention (e.g. the top-level --config flag, clap’s built-in --help) are skipped, they don’t correspond to a settings leaf.