]> granicus.if.org Git - postgresql/commit
Fix ecpg -? option on Windows, add -V alias for --version.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 18 Sep 2016 10:46:32 +0000 (13:46 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 18 Sep 2016 11:00:13 +0000 (14:00 +0300)
commita4a3fac169e06b9297fe5b6ea947d47d2faf0145
tree1f26ffdeb09e20940608b39f30fb7d353293fe83
parenteaf6fe7fae390735ddeb9c9bbdebc54918fb416b
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>
src/interfaces/ecpg/preproc/ecpg.c