Skip to content

fix(cli): print explicitly requested --help to stdout - #48167

Open
giner wants to merge 1 commit into
anomalyco:devfrom
giner:explicit-help-to-stdout
Open

fix(cli): print explicitly requested --help to stdout#48167
giner wants to merge 1 commit into
anomalyco:devfrom
giner:explicit-help-to-stdout

Conversation

@giner

@giner giner commented Sep 9, 2026

Copy link
Copy Markdown

Explicit help is normal output, only help shown on a usage error belongs on stderr. Writing it to stdout keeps it pipeable and greppable, and separates it from error output.

Issue for this PR

Fixes #48173

Type of change

  • Bug fix

What does this PR do?

Explicitly requested help (--help / -h) is normal output, not a diagnostic, but it was written to stderr, indistinguishable from error output and not pipeable. This PR routes user-requested help to stdout; help shown on a usage error still goes to stderr.

How did you verify your code works?

Ran tests locally

Checklist

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

Explicit help is normal output; only help shown on a usage error belongs
on stderr. Writing it to stdout keeps it pipeable and greppable, and
separates it from error output.
@github-actions github-actions Bot added 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 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:compliance This means the issue will auto-close after 2 hours. needs:issue 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.

Explicit help messages are printed to stderr

1 participant