postgresql/src/bin/pg_waldump
Peter Eisentraut f65eced251 pg_waldump: Fix invalid option handling
Previously, running pg_waldump with an invalid option (pg_waldump
--foo) would print the help output and exit successfully.  This was
because it tried to process the option letter '?' as a normal option,
but that letter is used by getopt() to report an invalid option.

To fix, process help and version options separately, like we do
everywhere else.  Also add a basic test suite for pg_waldump and run
the basic option handling tests, which would have caught this.
2019-06-06 10:14:25 +02:00
..
po Translation updates 2019-05-20 16:00:53 +02:00
t pg_waldump: Fix invalid option handling 2019-06-06 10:14:25 +02:00
.gitignore pg_waldump: Fix invalid option handling 2019-06-06 10:14:25 +02:00
compat.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile pg_waldump: Fix invalid option handling 2019-06-06 10:14:25 +02:00
nls.mk Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_waldump.c pg_waldump: Fix invalid option handling 2019-06-06 10:14:25 +02:00
rmgrdesc.c Split index xlog headers from other private index headers. 2017-02-14 15:37:59 -05:00
rmgrdesc.h Fix assorted header files that failed to compile standalone. 2019-05-31 11:45:33 -04:00