Skip to main content

split_equals

Function split_equals 

Source
pub fn split_equals(
    args: &[String],
    takes_value: impl Fn(&str) -> Option<bool>,
) -> Vec<String>
Expand description

Splits --flag=value into --flag value for every flag takes_value says reads a value. --pull-<name>=<value> is left whole: its parser reads that form itself.