Skip to content

Commit

Permalink
Add warning when --cache is used in non-slim mode
Browse files Browse the repository at this point in the history
The option -C/--cache does nothing when used in non-slim mode, print a
warning.

See #1501
  • Loading branch information
joto committed Aug 16, 2024
1 parent a76ea12 commit a57d79a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/command-line-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,11 @@ void parse_expire_tiles_param(char const *arg, uint32_t *expire_tiles_zoom_min,
void check_options_non_slim(CLI::App const &app)
{
std::vector<std::string> const slim_options = {
"--middle-schema", "--middle-with-nodes",
"--middle-way-node-index-id-shift", "--tablespace-slim-data",
"--cache",
"--middle-schema",
"--middle-with-nodes",
"--middle-way-node-index-id-shift",
"--tablespace-slim-data",
"--tablespace-slim-index"};

for (auto const &opt : slim_options) {
Expand Down

0 comments on commit a57d79a

Please sign in to comment.