Skip site navigation (1) Skip section navigation (2)

Re: Long options for psql in 7.1.3

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: greg(at)turnstep(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Long options for psql in 7.1.3
Date: 2001-10-04 18:16:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
-- Start of PGP signed section.
> > Here's a lovely message I got from `psql':
> > 
> >   g9genarc(at)eddie:~$ psql -h /var/pgsql --help
> >   psql was compiled without support for long options.
> >   Use --help for help on invocation options.
> Looks as though --help and --verbose always work, no 
> matter what the setting of HAVE_GETOPT_LONG. 
> Is this desired behavior? Seems fairly minor to me, 
> but it's confused at least one user. :)
> (~ line 110 of src/bin/psql/startup.c)

Intended. I think we hard-coded --help and --version for compatibility. 
You will notice it doesn't _display_ the long options in the --help
display unless HAVE_GETOPT_LONG is defined.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2001-10-04 19:36:33
Subject: Re: query plan
Previous:From: gregDate: 2001-10-04 18:05:35
Subject: Re: Long options for psql in 7.1.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group