From 9b491d88e22891dca6c2d54dda50721239d250db Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 21 May 2014 15:14:58 +0200 Subject: [PATCH] Add comand line argument parser --- src/main.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- 2.39.5