gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

Switcht output of --help from stderr to stdout

Open pingubot opened this issue 1 year ago • 4 comments

Switch output of --help from stderr to stdout.

pingubot avatar Mar 17 '24 08:03 pingubot

User messages are meant to be printed to stderr.

emersion avatar Mar 17 '24 14:03 emersion

User messages are meant to be printed to stderr.

As a user i do not expect to get user info on stderr tbh. Imo it is really uncommon and unhandy to use (don't want to redirect stderr to use | more on --help of a programm)

All programs i use on shell send --help to stdout. find, grep, make, gcc, meson, vulkaninfo..just to name a few of them. And they do that for ages.

While searching i only found 1 other example which uses stderr, renderdoc.

pingubot avatar Mar 17 '24 16:03 pingubot

I think it going to stderr is a bit weird. it's common to do commands like command --help | less however with gamescope you need to first redirect stderr to stdout, which is simple fair enough, but it's a weird departure from the norm that through me off for a couple of seconds. Not a massive issue it's just kinda odd.

Quackdoc avatar Apr 17 '24 05:04 Quackdoc