aboutsummaryrefslogtreecommitdiff
path: root/src/fe_utils/string_utils.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-06-05 22:55:16 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-06-06 10:14:25 +0200
commitf65eced25118aab29804debc4e0b9a67f4d043ad (patch)
tree38e42811d3f36c7e5a441ab76e5a5fb8b56b776f /src/fe_utils/string_utils.c
parentcd96389d713787b025c84869ba417c6f2f008a86 (diff)
downloadpostgresql-f65eced25118aab29804debc4e0b9a67f4d043ad.tar.gz
postgresql-f65eced25118aab29804debc4e0b9a67f4d043ad.zip
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.
Diffstat (limited to 'src/fe_utils/string_utils.c')
0 files changed, 0 insertions, 0 deletions