rmyorston / busybox-w32

WIN32 native port of BusyBox.
https://frippery.org/busybox
Other
674 stars 124 forks source link

--help go to stderr #445

Open ale5000-git opened 1 month ago

ale5000-git commented 1 month ago

I don't remember correctly but wasn't --help changed to go to stdout? Now it seems to go to stderr.

Since the help is explicitely requested doesn't it make sense to output to stdout like bash?

rmyorston commented 1 month ago

You're thinking of issue #395. That only resulted in a patch being sent upstream. It hasn't been accepted there yet. I'm awaiting their response before applying it here.

garoto commented 1 month ago

From a quick test: pigz.exe, bzip2.exe and upx.exe sent their --help|-h output to stderr. From what I gather, there's no real consensus.

avih commented 1 month ago

There are exceptions like you mentioned, but there is concensus, and that's stderr is used for error messages, while intentional request and output of help text is not an error message, therefore it should go to stdout.

ale5000-git commented 1 month ago

I have created a ticket to keep track of the problem: https://bugs.busybox.net/show_bug.cgi?id=16162