[PATCH v2] Print --version and --help to stdout
Mark Wielaard
mark@klomp.org
Sun Feb 21 13:59:24 GMT 2021
Hi Tom,
On Sat, Feb 20, 2021 at 07:12:54PM -0700, Tom Tromey wrote:
> Normall --version and --help output go to stdout and cause a program
> to exit with status 0. The rationale for the exit status is that the
> user asked for this behavior, and the program successfully complied.
> Printing --help output to stdout is nicer for piping into a pager.
>
> This patch changes dwz to follow this approach.
>
> I kept the program invocation name in the Usage line. Different
> programs seem to handle this differently.
Thanks, consistency between programs is nice here. I like that the
usage message goes to stderr when there is a failure, but that it goes
to stdout when explicitly requested.
Pushed,
Mark
More information about the Dwz
mailing list