Skip to content

Commit 79cd536

Browse files
authored
Merge pull request #1255 from joto/check-for-style-option
Check that -S/--style option is used for flex/gazetteer backends
2 parents 5a90fb5 + c9fd41e commit 79cd536

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/options.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,4 +658,11 @@ void options_t::check_options()
658658
fprintf(stderr, "WARNING: maximum zoom level for tile expiry is too "
659659
"large and has been set to 31.\n\n");
660660
}
661+
662+
if (output_backend == "flex" || output_backend == "gazetteer") {
663+
if (style == DEFAULT_STYLE) {
664+
throw std::runtime_error{
665+
"You have to set the config file with the -S|--style option."};
666+
}
667+
}
661668
}

0 commit comments

Comments
 (0)