Cover an issue if not built with GUI and --gui is passed.

This commit is contained in:
Joseph Lenox 2018-08-05 20:52:18 -05:00
parent e06d33180c
commit 4875ce641c

View File

@ -51,6 +51,10 @@ main(int argc, char **argv)
GUI::App::SetInstance(gui);
wxEntry(argc, argv);
}
#else
if (cli_config.gui) {
std::cout << "GUI support has not been built." << "\n";
}
#endif
// load config files supplied via --load
for (const std::string &file : cli_config.load.values) {