If problems found with configuration file, show which file was read

But only if it wasn't explicitly specified with -f/--config-file.
This commit is contained in:
Ian Barwick
2017-09-21 09:54:12 +09:00
parent ef5fc1832a
commit 9a6580a312
2 changed files with 6 additions and 4 deletions

View File

@@ -1755,13 +1755,13 @@ do_help(void)
printf(_("General options:\n"));
printf(_(" -?, --help show this help, then exit\n"));
printf(_(" -V, --version output version information, then exit\n"));
puts("");
printf(_("General configuration options:\n"));
printf(_(" -b, --pg_bindir=PATH path to PostgreSQL binaries (optional)\n"));
printf(_(" -f, --config-file=PATH path to the repmgr configuration file\n"));
printf(_(" -F, --force force potentially dangerous operations to happen\n"));
puts("");
printf(_("Database connection options:\n"));
printf(_(" -d, --dbname=DBNAME database to connect to (default: "));