Skip to content

Commit 2a878f8

Browse files
committed
osm2pgsql-replication: add hint about pqlib environment parameters.
1 parent 46b682f commit 2a878f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/osm2pgsql-replication

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,12 @@ def get_parser():
446446
help='Print only error messages')
447447
group.add_argument('-v', '--verbose', action='count', default=2,
448448
help='Increase verboseness of output')
449-
group = default_args.add_argument_group('Database arguments')
449+
group = default_args.add_argument_group('Database arguments',
450+
"The following arguments can be used to set the connection parameters to the\n"
451+
"osm2pgsql database. You may also use libpq environment variables to set\n"
452+
"connection parameters, see https://www.postgresql.org/docs/current/libpq-envars.html.\n"
453+
"If your database connection requires a password, use a pgpass file,\n"
454+
"see https://www.postgresql.org/docs/current/libpq-pgpass.html.")
450455
group.add_argument('-d', '--database', metavar='DB',
451456
help='Name of PostgreSQL database to connect to or conninfo string')
452457
group.add_argument('-U', '--username', metavar='NAME',

0 commit comments

Comments
 (0)