mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
--help output: put default values in quotation marks
Similar to psql.
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -3717,14 +3717,14 @@ do_help(void)
|
|||||||
printf(_(" -t, --terse don't display hints and other non-critical output\n"));
|
printf(_(" -t, --terse don't display hints and other non-critical output\n"));
|
||||||
printf(_("\n"));
|
printf(_("\n"));
|
||||||
printf(_("Connection options:\n"));
|
printf(_("Connection options:\n"));
|
||||||
printf(_(" -d, --dbname=DBNAME database to connect to (default: %s)\n"), default_db);
|
printf(_(" -d, --dbname=DBNAME database to connect to (default: \"%s\")\n"), default_db);
|
||||||
|
|
||||||
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
|
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
|
||||||
printf(_(" -p, --port=PORT database server port (default: %s)\n"), DEF_PGPORT_STR);
|
printf(_(" -p, --port=PORT database server port (default: \"%s\")\n"), DEF_PGPORT_STR);
|
||||||
printf(_(" -U, --username=USERNAME database user name to connect as"));
|
printf(_(" -U, --username=USERNAME database user name to connect as"));
|
||||||
if (getenv("PGUSER"))
|
if (getenv("PGUSER"))
|
||||||
{
|
{
|
||||||
printf(_(" (default: %s)"), getenv("PGUSER"));
|
printf(_(" (default: \"%s\")"), getenv("PGUSER"));
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf(_("\n"));
|
printf(_("\n"));
|
||||||
|
|||||||
Reference in New Issue
Block a user