Skip to content

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

jkomyno87320ba631d0
diff --git a/ts/packages/cli/src/bin.ts b/ts/packages/cli/src/bin.ts
index c5effbe31..b9a501770 100644
--- a/ts/packages/cli/src/bin.ts
+++ b/ts/packages/cli/src/bin.ts
@@ -107,7 +107,7 @@ runWithArgs.pipe(
// `--query "text"`), @effect/cli reports it as "unknown argument" — add a tip.
Effect.catchIf(ValidationError.isValidationError, error => {
const text = HelpDoc.toAnsiText(error.error).trim();
- const flagMatch = text.match(/Received unknown argument: '(--\w+)'/);
+ const flagMatch = text.match(/Received unknown argument: '(-{1,2}[\w-]+)'/);
if (flagMatch) {
return Console.error(`Tip: ${flagMatch[1]} requires a value, e.g. ${flagMatch[1]} "value"`);
}