Thread: pgsql: Fix ecpg -? option on Windows, add -V alias for --version.

pgsql: Fix ecpg -? option on Windows, add -V alias for --version.

From
Heikki Linnakangas
Date:
Fix ecpg -? option on Windows, add -V alias for --version.

This makes the -? and -V options work consistently with other binaries.
--help and --version are now only recognized as the first option, i.e.
"ecpg --foobar --help" no longer prints the help, but that's consistent
with most of our other binaries, too.

Backpatch to all supported versions.

Haribabu Kommi

Discussion: <CAJrrPGfnRXvmCzxq6Dy=stAWebfNHxiL+Y_z7uqksZUCkW_waQ@mail.gmail.com>

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/ed29d2de25d7da3b2b4c050d4cb6139eb4326ecb

Modified Files
--------------
src/interfaces/ecpg/preproc/ecpg.c | 45 ++++++++++++++------------------------
1 file changed, 17 insertions(+), 28 deletions(-)