Re: Long options for psql in 7.1.3 - Mailing list pgsql-bugs

From Arcady Genkin
Subject Re: Long options for psql in 7.1.3
Date
Msg-id r1z1ykjq6zj.fsf@bashful.cdf.toronto.edu
Whole thread Raw
In response to Re: Long options for psql in 7.1.3  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Long options for psql in 7.1.3  (Peter Eisentraut <peter_e@gmx.net>)
Re: Long options for psql in 7.1.3  (John Summerfield <pgtest@os2.ami.com.au>)
List pgsql-bugs
Peter Eisentraut <peter_e@gmx.net> writes:

> >   g9genarc@eddie:~$ psql -h /var/pgsql --help
> >   psql was compiled without support for long options.
> >   Use --help for help on invocation options.
> >
> > I guess that it was confused by having both options at once, since
> > "psql --help" works fine (i.e. the long options *do* work).
>
> While this message is confusing, it's factually correct. ;-)
Yes, confusing it is.

[...]
> So --help was the next best (or even better IMHO) choice, and to support
> it on all installations we had to give it some special treatment.

That's fine, but IMO "psql -h /var/pgsql --help" and "psql --help"
should either both work, or both not work.  Of course, this is not a
huge issue, but it did make me rub my eyes (to make sure I wasn't
seeing a ghost) the first time I've encountered it. :)

Thanks,
--
Arcady Genkin

pgsql-bugs by date:

Previous
From: Nathan Johnson
Date:
Subject: natural join kills postmaster
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #475: "hard coded" tk.h search