[search] [assessment-tool] Added an option to load samples from command line on startup.

This commit is contained in:
Maxim Pimenov 2019-11-18 15:04:20 +03:00 committed by Tatiana Yan
parent 491158dd9a
commit 0af1c0ebfd

View file

@ -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();
}