Skip to content

Commit cdb174f

Browse files
alankyshumCopilot
andcommitted
fix(cli): add trailing newline to --help output
Closes anomalyco#22115 Co-authored-by: Copilot <[email protected]>
1 parent 2719063 commit cdb174f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/opencode/src/index.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ function show(out: string) {
5757
if (!text.startsWith("opencode ")) {
5858
process.stderr.write(UI.logo() + EOL + EOL)
5959
process.stderr.write(text)
60-
return
60+
} else {
61+
process.stderr.write(out)
6162
}
62-
process.stderr.write(out)
63+
if (!out.endsWith("\n")) process.stderr.write(EOL)
6364
}
6465

6566
const cli = yargs(args)

0 commit comments

Comments
 (0)