trims values before checking lengths

This commit is contained in:
Sampson committed 2026-01-28 12:58:01 -06:00
1 parent 10e15c6ab8
commit 3e260407f6
1 file changed
+1 -1
+1 -1
View File
@@ -115,7 +115,7 @@ export function getOptions(): Configuration | false {
// Validate tool inclusion configuration
const { enabledTools, disabledTools } = options;
if (enabledTools.length > 0 && disabledTools.length > 0) {
if (enabledTools.trim().length > 0 && disabledTools.trim().length > 0) {
console.error('Error: --enabled-tools and --disabled-tools cannot be used together');
return false;
}