Add more detail to error message for invalid arguments for server process
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 10 Mar 2012 23:52:05 +0000 (01:52 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 11 Mar 2012 00:03:52 +0000 (02:03 +0200)
commit86947e666d39229558311d7b0be45608fd071ed8
tree37f30a53be5030776debe1e822e53ae7f53e462e
parent03e56f798e365763486b03a2630fbc3190ccd29a
Add more detail to error message for invalid arguments for server process

It now prints the argument that was at fault.

Also fix a small misbehavior where the error message issued by
getopt() would complain about a program named "--single", because
that's what argv[0] is in the server process.
src/backend/tcop/postgres.c