Skip to content

Commit

Permalink
Merge pull request #2254 from joto/deprecate-pgsql-output
Browse files Browse the repository at this point in the history
Add deprecation warning for pgsql output
  • Loading branch information
lonvia authored Sep 18, 2024
2 parents 9b283f6 + 427c228 commit ff5051a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/command-line-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ void check_options_output_null(CLI::App const &app)

void check_options_output_pgsql(CLI::App const &app, options_t *options)
{
log_warn("The pgsql (default) output is deprecated. For details see "
"https://osm2pgsql.org/doc/"
"faq.html#the-pgsql-output-is-deprecated-what-does-that-mean");

if (app.count("--latlong") + app.count("--merc") + app.count("--proj") >
1) {
throw std::runtime_error{"You can only use one of --latlong, -l, "
Expand Down

0 comments on commit ff5051a

Please sign in to comment.