Skip to main content

strip_flag_with_value

Function strip_flag_with_value 

Source
fn strip_flag_with_value(args: Vec<String>, flag: &str) -> Vec<String>
Expand description

Remove flag and the value token following it, everywhere it appears. Tolerates a trailing flag with no value rather than panicking.