diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index bb08972..9a57bfc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,8 +1,16 @@ #include "main_window.hpp" -int main(int argc, char* argv[]) { +int main(int argc, char* argv[]) +{ QApplication app{argc, argv}; - getsuyobi::GetsuyobiApp getsuyobi{}; + getsuyomi::GetsuyomiApp getsuyobi{}; + + QCommandLineParser parser; + parser.setApplicationDescription(QApplication::translate("main", "A comic book and manga reader")); + parser.addHelpOption(); + parser.addVersionOption(); + + parser.process(app); return app.exec(); } |