pub fn dh_invoke_drop_with(line: &str, with_argument: &str) -> StringExpand description
Drop a particular value from a with argument.
§Arguments
line- The command line to modifywith_argument- The with argument to remove
§Returns
The modified line with the argument removed
§Examples
use debian_analyzer::rules::dh_invoke_drop_with;
assert_eq!(
dh_invoke_drop_with("dh $@ --with=foo,bar", "foo"),
"dh $@ --with=bar"
);
assert_eq!(
dh_invoke_drop_with("dh $@ --with=foo", "foo"),
"dh $@"
);