forked from organicmaps/organicmaps
[search] [assessment-tool] Added an option to load samples from command line on startup.
This commit is contained in:
parent
491158dd9a
commit
0af1c0ebfd
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
|
||||
DEFINE_string(resources_path, "", "Path to resources directory");
|
||||
DEFINE_string(data_path, "", "Path to data directory");
|
||||
DEFINE_string(samples_path, "", "Path to the file with samples to open on startup");
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
|
@ -41,5 +42,9 @@ int main(int argc, char ** argv)
|
|||
view.SetModel(model);
|
||||
|
||||
view.showMaximized();
|
||||
|
||||
if (!FLAGS_samples_path.empty())
|
||||
model.Open(FLAGS_samples_path);
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue