From 8befbf4c7f2e1189788165b4b1bdad733108afa9 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 9 Apr 2025 18:32:16 +0200 Subject: [PATCH] Add CPU matching option and improve default behavior handling --- schemsearch-cli/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schemsearch-cli/src/main.rs b/schemsearch-cli/src/main.rs index ef84a02..0b8154a 100755 --- a/schemsearch-cli/src/main.rs +++ b/schemsearch-cli/src/main.rs @@ -169,7 +169,7 @@ fn main() { .value_parser(|s: &str| s.parse::().map_err(|e| e.to_string())), ) .arg( - Arg::new("cpu") + Arg::new("force-cpu") .help("Force CPU Matching, skip OpenCL checks") .short('c') .long("force-cpu") @@ -221,7 +221,7 @@ fn main() { ignore_entities: matches.get_flag("ignore-entities"), threshold: *matches.get_one::("threshold").expect("Couldn't get threshold"), invalid_nbt: matches.get_flag("invalid-nbt"), - use_cpu: matches.get_flag("use-cpu"), + use_cpu: matches.get_flag("force-cpu"), }; let pattern = match matches.get_one::("pattern") {