From 4edca6a80408037b4f753b44c460810a51489522 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 21 Apr 2018 13:59:32 +0200 Subject: Remove unknown option parsing --- src/commandline.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/commandline.cpp') diff --git a/src/commandline.cpp b/src/commandline.cpp index bb636f2..f5e479c 100644 --- a/src/commandline.cpp +++ b/src/commandline.cpp @@ -88,18 +88,6 @@ void CommandLine::parseCommandLine(const QCoreApplication &app) if(isSet(buildOption)) { printBuild(); } - - // create a list of unknown QCommandLineOption's - // parser.addOptions() takes a list, so this is a QList - - for(const QString &opt : unknownOptionNames()) { - QCommandLineOption o(opt, "dummy desc", "dummy value"); - unknownOptions.append(o); - } - - // add list and reparse to set the new options - addOptions(unknownOptions); - parse(app.arguments()); } void CommandLine::printHelp(int exitCode) -- cgit v1.2.1