dh_invoke_drop_argument

Function dh_invoke_drop_argument 

Source
pub fn dh_invoke_drop_argument(line: &str, argument: &str) -> String
Expand description

Drop a particular argument from a dh invocation.

§Arguments

  • line - The command line to modify
  • argument - The argument to remove

§Returns

The modified line with the argument removed

§Examples

use debian_analyzer::rules::dh_invoke_drop_argument;
assert_eq!(
    dh_invoke_drop_argument("dh $@ --foo --bar", "--foo"),
    "dh $@ --bar"
);