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

From Alvaro Herrera
Subject Re: unrecognized option '--help
Date
Msg-id 20150522013619.GQ5885@postgresql.org
Whole thread Raw
In response to Re: unrecognized option '--help  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: unrecognized option '--help  (Andres Freund <andres@anarazel.de>)
Re: unrecognized option '--help  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Michael Paquier wrote:
> On Thu, May 21, 2015 at 4:35 PM, D. S. <spider@skuggor.se> wrote:
> > Explanation:
> > If anything is ahead of --help, "--help" is then an unrecognized
> > option.
>
> 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.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

pgsql-bugs by date:

Previous
From: Greg Stark
Date:
Subject: Re: BUG #13324: Database returing incorrect results on querying slect clause
Next
From: Andres Freund
Date:
Subject: Re: unrecognized option '--help