Skip to main content

split_add_remove

Function split_add_remove 

Source
pub fn split_add_remove(values: &[String]) -> (Vec<String>, Vec<String>)
Expand description

Split a list of values into adds and removes.

Values starting with - are treated as removals (the leading - is stripped). All other values are adds. This powers the unified --thing CLI flags where --thing foo adds and --thing -foo removes.