summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/main.cpp')
-rw-r--r--Swift/QtUI/main.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Swift/QtUI/main.cpp b/Swift/QtUI/main.cpp
index 971d536..f8b805c 100644
--- a/Swift/QtUI/main.cpp
+++ b/Swift/QtUI/main.cpp
@@ -4,13 +4,21 @@
* See Documentation/Licenses/GPLv3.txt for more information.
*/
+#include <boost/program_options/options_description.hpp>
+#include <boost/program_options/variables_map.hpp>
+#include <boost/program_options.hpp>
+
+
#include <QApplication>
#include "QtSwift.h"
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
- bool netbookMode = argc > 1;
- Swift::QtSwift swift(netbookMode);
+ boost::program_options::options_description desc = Swift::QtSwift::getOptionsDescription();
+ boost::program_options::variables_map vm;
+ boost::program_options::store(boost::program_options::parse_command_line(argc, argv, desc), vm);
+ boost::program_options::notify(vm);
+ Swift::QtSwift swift(vm);
return app.exec();
}