From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: D. S. <spider@skuggor.se>
Cc: pgsql-bugs@postgresql.org
Subject: Re: unrecognized option '--help
Date: Fri, 22 May 2015 00:59:21 -0300
Message-ID: <20150522035921.GT5885@postgresql.org> (raw)
In-Reply-To: <21331.1432261497@sss.pgh.pa.us>
References: <1432193703.4099.3.camel@skuggor.se>
<CAB7nPqT=EThRyqmb3vixi1qa1WevMitPk2GHqY2MvOwr0aOk_w@mail.gmail.com>
<20150522013619.GQ5885@postgresql.org>
<20213.1432259076@sss.pgh.pa.us>
<20150522015006.GF2028@alap3.anarazel.de>
<20675.1432259996@sss.pgh.pa.us>
<20150522021319.GG2028@alap3.anarazel.de>
<21331.1432261497@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > I don't think it really is the symptom complained about here. Right now
> > "vacuumdb dbname --verbose" works (i.e. recognizes verbose as an
> > option), whereas "vacuumdb dbname --help" doesn't. The latter is what's
> > complained about here. And the reason for that is that
> > --help/-?/--version/-v aren't part of the getopt_long() call.
>
> Meh. I don't particularly object to including --help in the switch set
> recognized in getopt_long ... but I doubt that that will actually fix
> Alvaro's scenario.
Nah, I think that's okay for my usage.
> Note that we should not rip out the existing code, because part of the
> reason for that is that it acts before any of the other stuff that runs
> before getopt parsing starts, eg the postmaster's refusal to run if you're
> root.
No objection to that, though I wonder (without looking at the code) if
for binaries other than postmaster this is really worthwhile.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, andres@anarazel.de, michael.paquier@gmail.com, spider@skuggor.se
Subject: Re: unrecognized option '--help
In-Reply-To: <20150522035921.GT5885@postgresql.org>
References: <1432193703.4099.3.camel@skuggor.se> <CAB7nPqT=EThRyqmb3vixi1qa1WevMitPk2GHqY2MvOwr0aOk_w@mail.gmail.com> <20150522013619.GQ5885@postgresql.org> <20213.1432259076@sss.pgh.pa.us> <20150522015006.GF2028@alap3.anarazel.de> <20675.1432259996@sss.pgh.pa.us> <20150522021319.GG2028@alap3.anarazel.de> <21331.1432261497@sss.pgh.pa.us> <20150522035921.GT5885@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox