refs #886, start config wizard when -i is passed to launcher

made -i an optional flag
This commit is contained in:
Klaus Basan
2017-03-08 05:00:03 +01:00
committed by Mathew Sutcliffe
parent cc732bca84
commit 221e4c2b9c
2 changed files with 7 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ int main(int argc, char *argv[])
QApplication qa(argc, argv); // needed
Q_UNUSED(qa);
CGuiApplication a("swift launcher", CApplicationInfo::Laucher, CIcons::swiftLauncher1024());
a.addParserOption({{"i", "installer"}, QCoreApplication::translate("main", "Installer setup."), "installer"});
a.addParserOption({{"i", "installer"}, QCoreApplication::translate("main", "Installer setup.") });
if (!a.parse()) { return EXIT_FAILURE; }
a.useWebDataServices(BlackCore::CWebReaderFlags::AllSwiftDbReaders, CDatabaseReaderConfigList::forLauncher());
if (!a.start())