Change --use-location-cache=false to --disbale-location-cache

This commit is contained in:
Patrick Niklaus 2017-10-19 10:47:00 +00:00 committed by Patrick Niklaus
parent 1610ea8dee
commit 27a9603b98
2 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@ Feature: osrm-extract lua ways:get_nodes()
| ab | | ab |
And the data has been saved to disk 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 Then it should exit with an error
And stderr should contain "invalid location" And stderr should contain "invalid location"
@ -79,7 +79,7 @@ Feature: osrm-extract lua ways:get_nodes()
| ab | | ab |
And the data has been saved to disk 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 Then it should exit successfully
And stdout should contain "answer 42" And stdout should contain "answer 42"
And stdout should contain "boolean true" And stdout should contain "boolean true"
@ -116,7 +116,7 @@ Feature: osrm-extract lua ways:get_nodes()
| ef | Null Island | | ef | Null Island |
And the data has been saved to disk 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 Then it should exit successfully
And stdout should not contain "1 GeoJSON polygon" And stdout should not contain "1 GeoJSON polygon"
And stdout should contain "2 GeoJSON polygons" And stdout should contain "2 GeoJSON polygons"

View File

@ -67,10 +67,10 @@ return_code parseArguments(int argc,
&extractor_config.location_dependent_data_paths) &extractor_config.location_dependent_data_paths)
->composing(), ->composing(),
"GeoJSON files with location-dependent data")( "GeoJSON files with location-dependent data")(
"use-locations-cache", "disable-locations-cache",
boost::program_options::bool_switch(&extractor_config.use_locations_cache) boost::program_options::bool_switch(&extractor_config.use_locations_cache)
->implicit_value(true) ->implicit_value(false)
->default_value(extractor_config.use_locations_cache), ->default_value(true),
"Use internal nodes locations cache for location-dependent data lookups"); "Use internal nodes locations cache for location-dependent data lookups");
bool dummy; bool dummy;