Re: unrecognized option '--help - Mailing list pgsql-bugs

From Tom Lane
Subject Re: unrecognized option '--help
Date
Msg-id 20213.1432259076@sss.pgh.pa.us
Whole thread Raw
In response to Re: unrecognized option '--help  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: unrecognized option '--help  (Andres Freund <andres@anarazel.de>)
Re: unrecognized option '--help  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-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

pgsql-bugs by date:

Previous
From: Andres Freund
Date:
Subject: Re: unrecognized option '--help
Next
From: Andres Freund
Date:
Subject: Re: unrecognized option '--help