Skip to content

Commit

Permalink
Check that we are using flex output in osm2pgsql-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Dec 20, 2023
1 parent f6c9140 commit 26dd4e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gen/osm2pgsql-gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,11 @@ int main(int argc, char *argv[])
}
}

if (properties.get_string("output", "flex") != "flex") {
throw std::runtime_error{
"osm2pgsql-gen only works with flex output"};
}

bool const updatable = properties.get_bool("updatable", false);
genproc_t gen{style, conninfo, dbschema, append, updatable, jobs};
gen.run();
Expand Down

0 comments on commit 26dd4e6

Please sign in to comment.