Add --fast option
This commit is contained in:
parent
3365aca12f
commit
6f68438591
1 changed files with 9 additions and 0 deletions
|
|
@ -182,6 +182,11 @@ fn main() {
|
||||||
Err(_) => Err("Invalid option for filters".to_owned()),
|
Err(_) => Err("Invalid option for filters".to_owned()),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::new("fast")
|
||||||
|
.help("Use fast filter evaluation")
|
||||||
|
.long("fast"),
|
||||||
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("compression")
|
Arg::new("compression")
|
||||||
.help("zlib compression level (1-12) - Default: 11")
|
.help("zlib compression level (1-12) - Default: 11")
|
||||||
|
|
@ -442,6 +447,10 @@ fn parse_opts_into_struct(
|
||||||
opts.alphas.insert(AlphaOptim::Left);
|
opts.alphas.insert(AlphaOptim::Left);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if matches.is_present("fast") {
|
||||||
|
opts.fast_evaluation = true;
|
||||||
|
}
|
||||||
|
|
||||||
if matches.is_present("backup") {
|
if matches.is_present("backup") {
|
||||||
opts.backup = true;
|
opts.backup = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue