Skip to main content

resolve_effort

Function resolve_effort 

Source
pub fn resolve_effort(
    flag: Option<EffortArg>,
    setting: Option<&str>,
    warnings: &mut Vec<String>,
) -> Option<Effort>
Expand description

Resolve the effort rung: --effort wins, then the effort setting, then None (send no output_config and take the API’s own default).

An unparseable settings value warns and falls through rather than failing — a stale rung in a config file must not stop a run (ADR-0024 §1.5 tolerance).