diff --git a/CHANGELOG.md b/CHANGELOG.md index 4113621a2..157abb839 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ - Fixed pkg-config version of OSRM - Tools: - Because of boost/program_options#32 with boost 1.65+ we needed to change the behavior of the following flags to not accept `={true|false}` anymore: - - `--use-location-cache=false` becomes `--disable-location-cache` + - `--use-locations-cache=false` becomes `--disable-location-cache` - `--parse-conditional-restrictions=true` becomes `--parse-conditional-restrictions` - The deprecated options `--use-level-cache` and `--generate-edge-lookup` - Bugfixes: diff --git a/features/options/extract/lua.feature b/features/options/extract/lua.feature index bbe8e270d..750fbb8af 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 --disable-locations-cache" + When I try to run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --disable-location-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 --disable-locations-cache" + When I run "osrm-extract --profile {profile_file} {osm_file} --location-dependent-data test/data/regions/null-island.geojson --disable-location-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 --disable-locations-cache" + 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-location-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 3886384b0..bca3ef8d1 100644 --- a/src/tools/extract.cpp +++ b/src/tools/extract.cpp @@ -67,7 +67,7 @@ return_code parseArguments(int argc, &extractor_config.location_dependent_data_paths) ->composing(), "GeoJSON files with location-dependent data")( - "disable-locations-cache", + "disable-location-cache", boost::program_options::bool_switch(&extractor_config.use_locations_cache) ->implicit_value(false) ->default_value(true),