feat: new param: ignore-all-in-file

Add new cmd line param to ignore all files or directories listed in this
file
This commit is contained in:
andy.boot
2023-12-13 22:39:51 +00:00
parent e8c7990a17
commit cd53fc7494
11 changed files with 62 additions and 4 deletions
+7
View File
@@ -37,6 +37,13 @@ pub fn build_cli() -> Command {
.long("ignore-directory")
.action(clap::ArgAction::Append)
.help("Exclude any file or directory with this name"),
)
.arg(
Arg::new("ignore_all_in_file")
.short('I')
.long("ignore-all-in-file")
.value_parser(value_parser!(String))
.help("Exclude any file or directory with a regex matching that listed in this file, the file entries will be added to the ignore regexs provided by --invert_filter"),
)
.arg(
Arg::new("dereference_links")