Skip to content

fix(cli): Add trailing newline to subcommand help output - #48149

Open
giner wants to merge 1 commit into
anomalyco:devfrom
giner:cli-help-add-trailing-newline
Open

fix(cli): Add trailing newline to subcommand help output#48149
giner wants to merge 1 commit into
anomalyco:devfrom
giner:cli-help-add-trailing-newline

Conversation

@giner

@giner giner commented Sep 9, 2026

Copy link
Copy Markdown

This prevents the shell prompt from jumping around.

Issue for this PR

Fixes #48170

Type of change

  • Bug fix

What does this PR do?

Adds newlines to all help messages

How did you verify your code works?

Tested locally

Screenshots / recordings

Before

vagrant@vagrant:~$ opencode agent --help
opencode agent

manage agents

Commands:
  opencode agent create  create a new agent
  opencode agent list    list all available agents

Options:
  -h, --help        show help                                                              [boolean]
  -v, --version     show version number                                                    [boolean]
      --print-logs  print logs to stderr                                                   [boolean]
      --log-level   log level                   [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
      --pure        run without external plugins                                           [boolean]vagrant@vagrant:~$

After

vagrant@vagrant:~$ opencode agent --help
opencode agent

manage agents

Commands:
  opencode agent create  create a new agent
  opencode agent list    list all available agents

Options:
  -h, --help        show help                                                              [boolean]
  -v, --version     show version number                                                    [boolean]
      --print-logs  print logs to stderr                                                   [boolean]
      --log-level   log level                   [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
      --pure        run without external plugins                                           [boolean]
vagrant@vagrant:~$

Checklist

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

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Hey! Your PR title Add trailing newline to subcommand help output doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

This prevents the shell prompt from jumping around.
@giner
giner force-pushed the cli-help-add-trailing-newline branch from 7a8366d to b6575b5 Compare September 9, 2026 12:45
@giner giner changed the title Add trailing newline to subcommand help output fix(cli): Add trailing newline to subcommand help output Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

help messages don't have trailing newlines

1 participant