pg_waldump: Improve option parsing error messages
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 20 May 2022 07:26:21 +0000 (09:26 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 20 May 2022 07:26:21 +0000 (09:26 +0200)
commit25f915b31e41e5c86e1905d199c7d41cc66161ed
treef6c33a45bde6c34a7acf302d5f393c29d472314b
parent1d8ef62f6e1982c3019fc044dea070a8861a91bf
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.
src/bin/pg_waldump/pg_waldump.c