File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ return_code parseArguments(int argc,
6161 ->composing (),
6262 " Lookup files containing from_, to_, via_nodes, and turn penalties to adjust turn weights" )(
6363 " level-cache,o" ,
64- boost::program_options::value< bool > (&contractor_config.use_cached_priority )
64+ boost::program_options::bool_switch (&contractor_config.use_cached_priority )
6565 ->default_value (false ),
6666 " DEPRECATED: Will always be false. Use .level file to retain the contraction level for "
6767 " each "
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ return_code parseArguments(int argc,
5858 ->default_value (false ),
5959 " Use metadata during osm parsing (This can affect the extraction performance)." )(
6060 " parse-conditional-restrictions" ,
61- boost::program_options::value< bool > (&extractor_config.parse_conditionals )
61+ boost::program_options::bool_switch (&extractor_config.parse_conditionals )
6262 ->implicit_value (true )
6363 ->default_value (false ),
6464 " Save conditional restrictions found during extraction to disk for use "
@@ -68,7 +68,7 @@ return_code parseArguments(int argc,
6868 ->composing (),
6969 " GeoJSON files with location-dependent data" )(
7070 " use-locations-cache" ,
71- boost::program_options::value< bool > (&extractor_config.use_locations_cache )
71+ boost::program_options::bool_switch (&extractor_config.use_locations_cache )
7272 ->implicit_value (true )
7373 ->default_value (extractor_config.use_locations_cache ),
7474 " Use internal nodes locations cache for location-dependent data lookups" );
@@ -82,7 +82,7 @@ return_code parseArguments(int argc,
8282 boost::program_options::value<boost::filesystem::path>(&extractor_config.input_path ),
8383 " Input file in .osm, .osm.bz2 or .osm.pbf format" )(
8484 " generate-edge-lookup" ,
85- boost::program_options::value< bool > (&dummy)->implicit_value (true )->default_value (false ),
85+ boost::program_options::bool_switch (&dummy)->implicit_value (true )->default_value (false ),
8686 " Not used anymore" );
8787
8888 // positional option
You can’t perform that action at this time.
0 commit comments