pub fn dh_invoke_replace_argument(line: &str, old: &str, new: &str) -> StringExpand description
Replace one argument with another in a dh invocation.
§Arguments
line- The command line to modifyold- The argument to replacenew- The new argument value
§Returns
The modified line with the argument replaced
§Examples
use debian_analyzer::rules::dh_invoke_replace_argument;
assert_eq!(
dh_invoke_replace_argument("dh $@ --foo", "--foo", "--bar"),
"dh $@ --bar"
);