From: Mark Wielaard <mark@klomp.org>
To: Tom Tromey <tom@tromey.com>
Cc: dwz@sourceware.org
Subject: Re: [PATCH v2] Print --version and --help to stdout
Date: Sun, 21 Feb 2021 14:59:24 +0100 [thread overview]
Message-ID: <20210221135924.GA2992@wildebeest.org> (raw)
In-Reply-To: <20210221021254.897231-1-tom@tromey.com>
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
prev parent reply other threads:[~2021-02-21 14:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-21 2:12 Tom Tromey
2021-02-21 13:59 ` Mark Wielaard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210221135924.GA2992@wildebeest.org \
--to=mark@klomp.org \
--cc=dwz@sourceware.org \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).