From 9ab8334c44241d7e4d287b6cb98b559c179b2612 Mon Sep 17 00:00:00 2001 From: Jeroen Vermeulen Date: Sat, 14 Feb 2026 23:15:55 +0100 Subject: [PATCH] Respond to only `wx` and `gwx` command with usage. Fixes #49 --- modules/commands/alternatives/wx_international.py | 2 +- modules/commands/wx_command.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/commands/alternatives/wx_international.py b/modules/commands/alternatives/wx_international.py index a019ee0..2f7aad1 100644 --- a/modules/commands/alternatives/wx_international.py +++ b/modules/commands/alternatives/wx_international.py @@ -85,7 +85,7 @@ class GlobalWxCommand(BaseCommand): content = content[1:].strip() content_lower = content.lower() for keyword in self.keywords: - if content_lower.startswith(keyword + ' '): + if content_lower.startswith(keyword + ' ') or content_lower == keyword: return True return False diff --git a/modules/commands/wx_command.py b/modules/commands/wx_command.py index f06c27d..f8b9b08 100644 --- a/modules/commands/wx_command.py +++ b/modules/commands/wx_command.py @@ -124,7 +124,7 @@ class WxCommand(BaseCommand): content = content[1:].strip() content_lower = content.lower() for keyword in self.keywords: - if content_lower.startswith(keyword + ' '): + if content_lower.startswith(keyword + ' ') or content_lower == keyword: return True return False