Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print help to stdout not stderr #945

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

ryuukk
Copy link
Contributor

@ryuukk ryuukk commented Feb 7, 2024

No description provided.

@WebFreak001 WebFreak001 merged commit 433d1eb into dlang-community:master Feb 8, 2024
19 checks passed
@CyberShadow
Copy link
Member

CyberShadow commented May 27, 2024

I don't think this is quite right. If a switch is added in the future, and a program will try to use that switch, but the D-Scanner version will not have that switch yet, then this will send the help text to the program invoking D-Scanner. It will then try to parse the help text as if it was D-Scanner output.

Generally, messages intended for humans go to stderr, and messages for consumers of program output go to stdout.

If help text is requested specifically (e.g. via --help), then help text can be sent to stdout, but only then.

@ryuukk
Copy link
Contributor Author

ryuukk commented Oct 12, 2024

@CyberShadow sent a PR to fix it: #960

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.

3 participants