From 343fd4bcac6c6891608de99c1922655a4e405dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 11 Dec 2014 18:31:56 +0100 Subject: allow setting the cache database --- bin/render.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/render.cpp b/bin/render.cpp index a56c00f7d9..367fb5a889 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -35,6 +35,7 @@ int main(int argc, char *argv[]) { int height = 256; double pixelRatio = 1.0; std::string output = "out.png"; + std::string cache = "cache.sqlite"; std::vector classes; std::string token; @@ -50,6 +51,7 @@ int main(int argc, char *argv[]) { ("class,c", po::value(&classes)->value_name("name"), "Class name") ("token,t", po::value(&token)->value_name("key")->default_value(token), "Mapbox access token") ("output,o", po::value(&output)->value_name("file")->default_value(output), "Output file name") + ("cache,d", po::value(&cache)->value_name("file")->default_value(cache), "Cache database file name") ; try { @@ -72,7 +74,7 @@ int main(int argc, char *argv[]) { Log::Set(); #endif - CachingHTTPFileSource fileSource(""); + CachingHTTPFileSource fileSource(cache); // Try to load the token from the environment. if (!token.size()) { -- cgit v1.2.1