@devries-cameron20 / composio-1 / commits / 87320ba63
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix CLI tip for hyphenated flags

jkomyno committed Feb 19, 2026 at 02:17 UTC 87320ba631d0e4b041e869ecfe6f8f38ee94afc5
1 file changed +1 -1
ts/packages/cli/src/bin.ts
+1 -1
@@ -107,7 +107,7 @@ runWithArgs.pipe(
107 // `--query "text"`), @effect/cli reports it as "unknown argument" — add a tip.
108 Effect.catchIf(ValidationError.isValidationError, error => {
109 const text = HelpDoc.toAnsiText(error.error).trim();
110 - const flagMatch = text.match(/Received unknown argument: '(--\w+)'/);
110 + const flagMatch = text.match(/Received unknown argument: '(-{1,2}[\w-]+)'/);
111 if (flagMatch) {
112 return Console.error(`Tip: ${flagMatch[1]} requires a value, e.g. ${flagMatch[1]} "value"`);
113 }