Skip to content

Print errors to standard error#10

Merged
tdewolff merged 1 commit intotdewolff:masterfrom
dbohdan:errors-to-stderr
Mar 20, 2025
Merged

Print errors to standard error#10
tdewolff merged 1 commit intotdewolff:masterfrom
dbohdan:errors-to-stderr

Conversation

@dbohdan
Copy link
Contributor

@dbohdan dbohdan commented Mar 19, 2025

This follows the example of GNU tools. They print normal help to standard output but errors to standard error.

$ ls --help >/dev/null
$ ls --no-such >/dev/null
ls: unrecognized option '--no-such'
Try 'ls --help' for more information.

@tdewolff tdewolff merged commit 4439d14 into tdewolff:master Mar 20, 2025
3 checks passed
@tdewolff
Copy link
Owner

Good point!

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.

2 participants