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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 3fcc98c990ede7d3b415cc06eb6664aac6e7bbbc
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2016-09-18T10:46:32Z
Releases: 10.0
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>

Files

PathChange+/−
src/interfaces/ecpg/preproc/ecpg.c modified +17 −28