From: Christoph Egger Date: Wed, 21 May 2014 13:14:58 +0000 (+0200) Subject: Add comand line argument parser X-Git-Tag: v0.1~210 X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=commitdiff_plain;h=9b491d88e22891dca6c2d54dda50721239d250db;ds=sidebyside Add comand line argument parser --- diff --git a/src/main.cxx b/src/main.cxx index e5c5128..14dc0cb 100644 --- a/src/main.cxx +++ b/src/main.cxx @@ -4,6 +4,7 @@ #include #include +#include #include #include "log4cxx/logger.h" @@ -20,6 +21,7 @@ int main(int argc, char** argv) { log4cxx::BasicConfigurator::configure(); log4cxx::LoggerPtr _logger(log4cxx::Logger::getLogger("main")); + LOG4CXX_DEBUG(_logger, "Initializing LLVM"); llvm::InitializeAllTargetInfos(); llvm::InitializeAllTargetMCs(); @@ -28,6 +30,11 @@ int main(int argc, char** argv) LOG4CXX_DEBUG(_logger, "Initializing Qt"); QApplication app(argc, argv); + QCommandLineParser parser; + + QApplication::setApplicationName("frida"); + parser.addHelpOption(); + parser.process(app); Mainwindow m; m.show();