From 427c228ac0ed808f87d5cc3d6fd71cd5b021285d Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 19 Aug 2024 20:13:20 +0200 Subject: [PATCH] Add deprecation warning for pgsql output --- src/command-line-parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/command-line-parser.cpp b/src/command-line-parser.cpp index ed2fdfb6f..b5b42e109 100644 --- a/src/command-line-parser.cpp +++ b/src/command-line-parser.cpp @@ -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, "