Commit 0a89e93b authored by Fujii Masao's avatar Fujii Masao

Fix option related issues in pg_verifybackup.

This commit does:

- get rid of the garbage code for unused --print-parse-wal option.
- add help message for --quiet option into usage().
- fix typo of option name in help message.

Author: Fujii Masao
Reviewed-by: Robert Haas
Discussion: https://postgr.es/m/ff4710f7-2331-4f6b-012e-d76da3275e91@oss.nttdata.com
parent 1cc34640
...@@ -162,7 +162,6 @@ main(int argc, char **argv) ...@@ -162,7 +162,6 @@ main(int argc, char **argv)
{"ignore", required_argument, NULL, 'i'}, {"ignore", required_argument, NULL, 'i'},
{"manifest-path", required_argument, NULL, 'm'}, {"manifest-path", required_argument, NULL, 'm'},
{"no-parse-wal", no_argument, NULL, 'n'}, {"no-parse-wal", no_argument, NULL, 'n'},
{"print-parse-wal", no_argument, NULL, 'p'},
{"quiet", no_argument, NULL, 'q'}, {"quiet", no_argument, NULL, 'q'},
{"skip-checksums", no_argument, NULL, 's'}, {"skip-checksums", no_argument, NULL, 's'},
{"wal-directory", required_argument, NULL, 'w'}, {"wal-directory", required_argument, NULL, 'w'},
...@@ -894,8 +893,9 @@ usage(void) ...@@ -894,8 +893,9 @@ usage(void)
printf(_("Options:\n")); printf(_("Options:\n"));
printf(_(" -e, --exit-on-error exit immediately on error\n")); printf(_(" -e, --exit-on-error exit immediately on error\n"));
printf(_(" -i, --ignore=RELATIVE_PATH ignore indicated path\n")); printf(_(" -i, --ignore=RELATIVE_PATH ignore indicated path\n"));
printf(_(" -m, --manifest=PATH use specified path for manifest\n")); printf(_(" -m, --manifest-path=PATH use specified path for manifest\n"));
printf(_(" -n, --no-parse-wal do not try to parse WAL files\n")); printf(_(" -n, --no-parse-wal do not try to parse WAL files\n"));
printf(_(" -q, --quiet do not print any output, except for errors\n"));
printf(_(" -s, --skip-checksums skip checksum verification\n")); printf(_(" -s, --skip-checksums skip checksum verification\n"));
printf(_(" -w, --wal-directory=PATH use specified path for WAL files\n")); printf(_(" -w, --wal-directory=PATH use specified path for WAL files\n"));
printf(_(" -V, --version output version information, then exit\n")); printf(_(" -V, --version output version information, then exit\n"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment