Add --fast option

This commit is contained in:
Andrew 2022-11-22 19:50:44 +13:00 committed by Josh Holmer
parent 3365aca12f
commit 6f68438591

View file

@ -182,6 +182,11 @@ fn main() {
Err(_) => Err("Invalid option for filters".to_owned()),
}),
)
.arg(
Arg::new("fast")
.help("Use fast filter evaluation")
.long("fast"),
)
.arg(
Arg::new("compression")
.help("zlib compression level (1-12) - Default: 11")
@ -442,6 +447,10 @@ fn parse_opts_into_struct(
opts.alphas.insert(AlphaOptim::Left);
}
if matches.is_present("fast") {
opts.fast_evaluation = true;
}
if matches.is_present("backup") {
opts.backup = true;
}