Rename use_cpu to opencl and adjust logic accordingly.

This commit is contained in:
2025-04-09 18:58:55 +02:00
parent c30c10e494
commit c554b1f164
3 changed files with 8 additions and 15 deletions

View File

@@ -169,10 +169,10 @@ fn main() {
.value_parser(|s: &str| s.parse::<usize>().map_err(|e| e.to_string())),
)
.arg(
Arg::new("force-cpu")
.help("Force CPU Matching, skip OpenCL checks")
Arg::new("opencl")
.help("Use OpenCL Checker")
.short('c')
.long("force-cpu")
.long("opencl")
.action(ArgAction::SetTrue),
)
.about("Searches for a pattern in a schematic")
@@ -221,7 +221,7 @@ fn main() {
ignore_entities: matches.get_flag("ignore-entities"),
threshold: *matches.get_one::<f32>("threshold").expect("Couldn't get threshold"),
invalid_nbt: matches.get_flag("invalid-nbt"),
use_cpu: matches.get_flag("force-cpu"),
opencl: matches.get_flag("opencl"),
};
let pattern = match matches.get_one::<String>("pattern") {