diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts index 13540a73a36f..43adb5685560 100644 --- a/packages/opencode/src/index.ts +++ b/packages/opencode/src/index.ts @@ -108,6 +108,7 @@ const cli = yargs(args) msg?.startsWith("Invalid values:") ) { if (err) throw err + if (msg) process.stderr.write(msg + "\n") cli.showHelp(show) } if (err) throw err