Skip to content

Commit ff5051a

Browse files
authored
Merge pull request #2254 from joto/deprecate-pgsql-output
Add deprecation warning for pgsql output
2 parents 9b283f6 + 427c228 commit ff5051a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/command-line-parser.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ void check_options_output_null(CLI::App const &app)
183183

184184
void check_options_output_pgsql(CLI::App const &app, options_t *options)
185185
{
186+
log_warn("The pgsql (default) output is deprecated. For details see "
187+
"https://osm2pgsql.org/doc/"
188+
"faq.html#the-pgsql-output-is-deprecated-what-does-that-mean");
189+
186190
if (app.count("--latlong") + app.count("--merc") + app.count("--proj") >
187191
1) {
188192
throw std::runtime_error{"You can only use one of --latlong, -l, "

0 commit comments

Comments
 (0)