Skip to content

Commit 2c9fc2b

Browse files
committed
Add data version option
1 parent acbb879 commit 2c9fc2b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

importer/src/main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ int main(int argc, char *argv[])
4747
{
4848
po::options_description generic("Geocoder NLP importer options");
4949
generic.add_options()("help,h", "Help message")("version,v", "Version");
50+
generic.add_options()("version-data", "Version of the data file");
5051
generic.add_options()("poly,p", po::value<std::string>(&polyjson),
5152
"Boundary of the imported region in GeoJSON format");
5253
generic.add_options()("postal-country", po::value<std::string>(&postal_country_parser),
@@ -106,6 +107,12 @@ int main(int argc, char *argv[])
106107
return 0;
107108
}
108109

110+
if (vm.count(("version-data")))
111+
{
112+
std::cout << GeoNLP::Geocoder::version << "\n";
113+
return 0;
114+
}
115+
109116
if (vm.count("verbose"))
110117
verbose_address_expansion = true;
111118

0 commit comments

Comments
 (0)