dh_invoke_drop_with

Function dh_invoke_drop_with 

Source
pub fn dh_invoke_drop_with(line: &str, with_argument: &str) -> String
Expand description

Drop a particular value from a with argument.

§Arguments

  • line - The command line to modify
  • with_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 $@"
);