Skip to main content

take_value

Function take_value 

Source
pub fn take_value<I: Iterator<Item = String>>(
    flag: &str,
    it: &mut I,
) -> Result<String>
Expand description

Fetch the next token value for a flag from any iterator over Strings. Returns anyhow::Error when value is missing.