Re: make createlang match docs - Mailing list pgsql-patches

From Marko Kreen
Subject Re: make createlang match docs
Date
Msg-id 20011212233729.GA5865@l-t.ee
Whole thread Raw
In response to Re: make createlang match docs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
On Wed, Dec 12, 2001 at 03:40:30PM -0500, Tom Lane wrote:
> Marko Kreen <marko@l-t.ee> writes:
> > * make createlang match docs: "createlang dbname" did not work.
>
> Unless you can demonstrate that createlang changed behavior recently,
> this is the wrong fix.  Breaking existing scripts that use createlang
> is not the way to go; fixing the documentation to match the code is
> the way to go.

in app-createlang.html:
Synopsis

    createlang [connection-options...] [langname] dbname

    createlang [connection-options...] --list | -l dbname

---

    $ createlang --help
    ...
    Usage:
      createlang [options] [langname] dbname
    ....
    $ createlang foo
    createlang: missing required argument database name
    Try 'createlang -?' for help.
    $

With my patch:

    $  createlang foo
    Language to install in database foo:

I would say 'createlang foo' has been error-message-only command
all the 7.x.x, so it should not break anything.

What way the docs should be changed?

--
marko


pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: make createlang match docs
Next
From: Marko Kreen
Date:
Subject: Re: make createlang match docs