Skip to content

fix(cli): add newline to help output#28622

Open
Arcadi4 wants to merge 1 commit into
anomalyco:devfrom
Arcadi4:fix/cli-help-trailing-newline
Open

fix(cli): add newline to help output#28622
Arcadi4 wants to merge 1 commit into
anomalyco:devfrom
Arcadi4:fix/cli-help-trailing-newline

Conversation

@Arcadi4
Copy link
Copy Markdown

@Arcadi4 Arcadi4 commented May 21, 2026

Issue for this PR

Closes #28606 #24813 #26114

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

opencode --help does not print a new line at the end. The PR fixes the issue.

How did you verify your code works?

Ran a locally built artifact (macOS + zsh) with --help, the trailing newline appeared.

Screenshots / recordings

I am using ghostty, where a command output without a trailing EOL will be marked with % at the end.

image

The local build does not have a trailing % in its output.

image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found

PR #26374: "fix: add trailing newline to help output"
#26374

This PR appears to address the same issue - adding a trailing newline to help output. Both PRs are fixing the exact same problem where help text lacks a final newline, causing the shell prompt to appear attached to the last help line. You should verify whether PR #26374 was previously closed/rejected or if the current PR (28622) is meant to supersede it with improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI --help lacks trailing newline

1 participant