pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: D. S. <spider@skuggor.se>
Cc: pgsql-bugs@postgresql.org
Subject: Re: unrecognized option '--help
Date: Thu, 21 May 2015 21:44:36 -0400
Message-ID: <20213.1432259076@sss.pgh.pa.us> (raw)
In-Reply-To: <20150522013619.GQ5885@postgresql.org>
References: <1432193703.4099.3.camel@skuggor.se>
	<CAB7nPqT=EThRyqmb3vixi1qa1WevMitPk2GHqY2MvOwr0aOk_w@mail.gmail.com>
	<20150522013619.GQ5885@postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Michael Paquier wrote:
>> It is wanted this way for all the utilities of src/bin. See
>> handle_help_version_opts() in src/bin/scripts/common.c for your case.

> Is it really wanted?  I find it very annoying and wish it didn't do
> that.

I think the only thing that would do what you wanted would be to
recognize *any* argv element matching "--help" as a help request.
Maybe that's all right, but I'm a tad worried about the possibility
of false positives.  Are we so sure that that string could never be
a database name, table name, etc?

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (16+ messages)  latest in thread

Message-ID: <20213.1432259076@sss.pgh.pa.us>
Permalink:  ../20213.1432259076@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20213.1432259076@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, michael.paquier@gmail.com, spider@skuggor.se
  Subject: Re: unrecognized option '--help
  In-Reply-To: <20213.1432259076@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>

* 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