Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    options: &[FormOption],
    source: Source,
    flag: &str,
    input: &str,
) -> Result<String, CommandError>
Expand description

The id of the option input names: an own id, an exact label, or a unique alias; | stands for ¦, and commodities compare case-insensitively.

§Errors

CommandError::Argument naming flag when nothing matches, or listing the candidate labels when several do.