pg_waldump: Improve option parsing error messages

Peter Eisentraut <peter@eisentraut.org>

Commit: 25f915b31e41e5c86e1905d199c7d41cc66161ed
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-05-20T07:26:21Z
Releases: 15.0
pg_waldump: Improve option parsing error messages

I rephrased the error messages to be more in the style of
option_parse_int(), and also made use of the new "detail" message
facility.  I didn't actually use option_parse_int() (which could be
used for -n) because libpgfeutils wasn't used here yet and I wanted to
keep this just to string changes.  But it could be done in the future.

Files

PathChange+/−
src/bin/pg_waldump/pg_waldump.c modified +13 −13