Re: more adequate usage msg: pg_controldata.diff - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: more adequate usage msg: pg_controldata.diff
Date
Msg-id 200301100223.h0A2NOp00698@candle.pha.pa.us
Whole thread Raw
In response to Re: more adequate usage msg: pg_controldata.diff  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: more adequate usage msg: pg_controldata.diff
List pgsql-patches
Peter Eisentraut wrote:
> Bruce Momjian writes:
>
> > > I explained in my last message that this patch is wrong.  Please revert
> > > it.  (DATADIR is not an option and therefore it shouldn't be listed in the
> > > options list.)
> >
> > I tried to subtely point out that it is optional.
>
> But the help output is wrong.  It lists DATADIR as an option, which it is
> not.  (An option is something like -a or --foo.  The other things are
> arguments.)  See my message to Serguei about how to do it better.

It is my understanding that -a and the like are _flags_.  PGDATA is an
optional argument, or "option" for short.  I don't see how having a dash
is required to make something an option.  When I do:

    cat [-t -v] [file ...]

I consider "file" to be an optional argument, or option.  It of course
isn't a flag.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Serguei Mokhov
Date:
Subject: Re: more adequate usage msg: pg_controldata.diff
Next
From: Neil Conway
Date:
Subject: minor PL/PgSQL doc improvement