From 27a9603b98d7002cef5880ffab23c674a8c3f930 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Thu, 19 Oct 2017 10:47:00 +0000 Subject: [PATCH] Change --use-location-cache=false to --disbale-location-cache --- features/options/extract/lua.feature | 6 +++--- src/tools/extract.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/features/options/extract/lua.feature b/features/options/extract/lua.feature index 7c7fd6eb0..bbe8e270d 100644 --- a/features/options/extract/lua.feature +++ b/features/options/extract/lua.feature @@ -51,7 +51,7 @@ Feature: osrm-extract lua ways:get_nodes() | ab | And the data has been saved to disk - When I try to run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --use-locations-cache=false" + When I try to run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --disable-locations-cache" Then it should exit with an error And stderr should contain "invalid location" @@ -79,7 +79,7 @@ Feature: osrm-extract lua ways:get_nodes() | ab | And the data has been saved to disk - When I run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --use-locations-cache=false" + When I run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --disable-locations-cache" Then it should exit successfully And stdout should contain "answer 42" And stdout should contain "boolean true" @@ -116,7 +116,7 @@ Feature: osrm-extract lua ways:get_nodes() | ef | Null Island | And the data has been saved to disk - When I run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --location-dependent-data test/data/regions/hong-kong.geojson --use-locations-cache=false" + When I run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --location-dependent-data test/data/regions/hong-kong.geojson --disable-locations-cache" Then it should exit successfully And stdout should not contain "1 GeoJSON polygon" And stdout should contain "2 GeoJSON polygons" diff --git a/src/tools/extract.cpp b/src/tools/extract.cpp index e3633734d..3886384b0 100644 --- a/src/tools/extract.cpp +++ b/src/tools/extract.cpp @@ -67,10 +67,10 @@ return_code parseArguments(int argc, &extractor_config.location_dependent_data_paths) ->composing(), "GeoJSON files with location-dependent data")( - "use-locations-cache", + "disable-locations-cache", boost::program_options::bool_switch(&extractor_config.use_locations_cache) - ->implicit_value(true) - ->default_value(extractor_config.use_locations_cache), + ->implicit_value(false) + ->default_value(true), "Use internal nodes locations cache for location-dependent data lookups"); bool dummy;