[−][src]Function probe_rs_cli_util::argument_handling::remove_arguments
pub fn remove_arguments(
arguments_to_remove: &[&'static str],
arguments: &mut Vec<String>
)
Removes all arguments from the commandline input that cargo build
does not understand.
All the arguments are removed in place!
It expects a list of arguments to be removed. If the argument can have a value it MUST contain a =
at the end.
E.g:
let arguments_to_remove = [ "foo", // Can be "--foo" "bar=", // Can be "--bar=value" and "--bar value" ];