While reading the code, I noticed an incorrect comment in the main() function of src/bin/pg_resetwal/pg_resetwal.c.
In the block handling the -e option, there’s a comment that appears to be a copy-paste error (line 190 and 191). It references a second %s, but none exists in that format string. Moreover, similar argument-handling code for other options doesn’t include such a comment.