summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-12-11 18:31:56 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-12-11 18:31:56 +0100
commit343fd4bcac6c6891608de99c1922655a4e405dc0 (patch)
treea41ea746ea0193dad45716dc0632bab458c30d99 /bin
parent41d9e7730f8e430a08a0181912e2f4749bff112d (diff)
downloadqtlocation-mapboxgl-343fd4bcac6c6891608de99c1922655a4e405dc0.tar.gz
allow setting the cache database
Diffstat (limited to 'bin')
-rw-r--r--bin/render.cpp4
1 files changed, 3 insertions, 1 deletions
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<std::string> 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<StderrLogBackend>();
#endif
- CachingHTTPFileSource fileSource("");
+ CachingHTTPFileSource fileSource(cache);
// Try to load the token from the environment.
if (!token.size()) {