Skip to content

Commit 7c5977d

Browse files
committed
Change --use-location-cache=false to --disbale-location-cache
1 parent 253522c commit 7c5977d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

features/options/extract/lua.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Feature: osrm-extract lua ways:get_nodes()
5151
| ab |
5252
And the data has been saved to disk
5353

54-
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"
54+
When I try to run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --disable-locations-cache"
5555
Then it should exit with an error
5656
And stderr should contain "invalid location"
5757

@@ -79,7 +79,7 @@ Feature: osrm-extract lua ways:get_nodes()
7979
| ab |
8080
And the data has been saved to disk
8181

82-
When I run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --use-locations-cache=false"
82+
When I run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --disable-locations-cache"
8383
Then it should exit successfully
8484
And stdout should contain "answer 42"
8585
And stdout should contain "boolean true"
@@ -116,7 +116,7 @@ Feature: osrm-extract lua ways:get_nodes()
116116
| ef | Null Island |
117117
And the data has been saved to disk
118118

119-
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"
119+
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"
120120
Then it should exit successfully
121121
And stdout should not contain "1 GeoJSON polygon"
122122
And stdout should contain "2 GeoJSON polygons"

src/tools/extract.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ return_code parseArguments(int argc,
6767
&extractor_config.location_dependent_data_paths)
6868
->composing(),
6969
"GeoJSON files with location-dependent data")(
70-
"use-locations-cache",
70+
"disable-locations-cache",
7171
boost::program_options::bool_switch(&extractor_config.use_locations_cache)
72-
->implicit_value(true)
73-
->default_value(extractor_config.use_locations_cache),
72+
->implicit_value(false)
73+
->default_value(true),
7474
"Use internal nodes locations cache for location-dependent data lookups");
7575

7676
bool dummy;

0 commit comments

Comments
 (0)