Skip to main content

check_conflicts

Function check_conflicts 

Source
pub fn check_conflicts(
    metadata: &AdapterMetadata,
    args: &[OsString],
) -> Result<()>
Expand description

Refuses an opaque argument that selects the adapter’s own mechanism (spec §21, SP2 design §6). The scan stops at the first --, after which arguments are positional for the agent.

The scanned set is metadata.conflicts chained with the mechanism’s own option, so a flag adapter refuses the flag it launches with whether or not it remembered to list it: conflicts carries only the additional options proven to control the same mechanism.