Skip to main content

view_for_program

Function view_for_program 

Source
pub fn view_for_program<'a>(
    spec: &'a Spec<'a>,
    argv0: &OsStr,
) -> Option<&'a ViewMeta<'a>>
Expand description

The declared executable view selected by argv0, if any.

Matching uses the same path and .exe normalization as multicall applets. Both bin and the stable view identifier are accepted so changing the display name cannot break dispatch.