Merge pull request #50 from jeroenvermeulen/fix-wx-gws-usage

Respond to only `wx` and `gwx` command with usage.
This commit is contained in:
Adam Gessaman authored and GitHub committed 2026-02-15 21:11:09 -08:00
commit ea7b92e4f8
2 files changed
+2 -2

No files matched your search

@@ -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
+1 -1
View File
@@ -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