Skip to content

Commit 4df2f6e

Browse files
committed
fix(cli): add trailing newline to --help output
Closes anomalyco#22115
1 parent 74b14a2 commit 4df2f6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/opencode/src/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ function show(out: string) {
5656
const text = out.trimStart()
5757
if (!text.startsWith("opencode ")) {
5858
process.stderr.write(UI.logo() + EOL + EOL)
59-
process.stderr.write(text)
59+
process.stderr.write(text.endsWith(EOL) ? text : text + EOL)
6060
return
6161
}
62-
process.stderr.write(out)
62+
process.stderr.write(out.endsWith(EOL) ? out : out + EOL)
6363
}
6464

6565
const cli = yargs(args)

0 commit comments

Comments
 (0)