Bug 24843

Summary: xephyr: Send --help to stdout, not stderr
Product: xorg Reporter: Jari Aalto <jari.aalto>
Component: Server/DDX/XephyrAssignee: Adam Jackson <ajax>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: smheidrich
Version: 7.4 (2008.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Jari Aalto 2009-11-01 13:39:31 UTC
It's okay to send the text on stderr, when invalid option is given:

    /usr/bin/Xephyr -xyzabc
    
But not, when help is asked:

    /usr/bin/Xephyr --help | less

Please change the -help option to send text to stdout, not stderr.
See GNU cp(1), ls(1) etc. for reference.
Comment 1 smheidrich 2017-03-23 00:30:00 UTC
This appears to be a problem with the X server in general, not just Xephyr. The function for printing the help message can be found at [1] and as you can see it writes everything to stderr regardless of the situation. It is called by both the normal X server and Xephyr.

Perhaps this should be reopened as a general X server issue?

[1]: https://cgit.freedesktop.org/xorg/xserver/tree/os/utils.c?id=fdc79fe72bc0b97776df2c3a664076c60e08a87c#n516
Comment 2 GitLab Migration User 2018-12-13 18:27:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/118.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.