push config option

This commit is contained in:
n4n5
2024-12-30 10:06:03 +01:00
committed by andy.boot
parent e0eaeccc0b
commit eeb686562d
9 changed files with 73 additions and 25 deletions

View File

@@ -24,6 +24,15 @@ pub fn build_cli() -> Command {
.help("Number of threads to use")
.num_args(1)
)
.arg(
Arg::new("config")
.long("config")
.help("Specify a config file to use")
.value_name("FILE")
.value_hint(clap::ValueHint::FilePath)
.value_parser(value_parser!(String))
.num_args(1)
)
.arg(
Arg::new("number_of_lines")
.short('n')
@@ -47,7 +56,7 @@ pub fn build_cli() -> Command {
.value_name("PATH")
.value_hint(clap::ValueHint::AnyPath)
.action(clap::ArgAction::Append)
.help("Exclude any file or directory with this name"),
.help("Exclude any file or directory with this path"),
)
.arg(
Arg::new("ignore_all_in_file")