This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/31350] gcc -v --help puts some output on std. out, and some on std. error.
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Oct 2017 01:14:42 +0000
- Subject: [Bug driver/31350] gcc -v --help puts some output on std. out, and some on std. error.
- Auto-submitted: auto-generated
- References: <bug-31350-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31350
--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
This is exactly the same case as:
$ gcc --help --invalid 1> /dev/null
gcc: error: unrecognized command line option ‘--invalid’
One should not expect the error output to go to stdout just because --help was
provided.