Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion man/osm2pgsql.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ mandatory for short options too.
`postgres://`), it is treated as a conninfo string. See the PostgreSQL
manual for details.

-U, \--username=NAME
-U, \--username=NAME, \--user=NAME
: Postgresql user name.

-W, \--password
Expand Down
2 changes: 1 addition & 1 deletion scripts/osm2pgsql-replication
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def get_parser():
"see https://www.postgresql.org/docs/current/libpq-pgpass.html.")
group.add_argument('-d', '--database', metavar='DB',
help='Name of PostgreSQL database to connect to or conninfo string')
group.add_argument('-U', '--username', metavar='NAME',
group.add_argument('-U', '--username', '--user', metavar='NAME',
help='PostgreSQL user name')
group.add_argument('-H', '--host', metavar='HOST',
help='Database server host name or socket location')
Expand Down
2 changes: 1 addition & 1 deletion src/command-line-app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void command_line_app_t::init_database_options()
->type_name("DB")
->group("Database options");

add_option_function<std::string>("-U,--user",
add_option_function<std::string>("-U,--username,--user",
[&](std::string const &value) {
m_connection_params.set("user", value);
})
Expand Down