Skip to main content

cli_part_mismatch

Function cli_part_mismatch 

Source
pub const fn cli_part_mismatch<Source, Stated>(
    _stated: &Stated,
    position: usize,
    name: &str,
) -> CliArgMessage
where Source: CliPartsFor<Stated>,
Expand description

Answers why the part at position of the argument stated states, which Source supplies, is not named name, or an empty message when it is or when no names are known, at compile time: “field 1 of the product is port, not addr”.