diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-21 13:59:32 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-21 13:59:32 +0200 |
commit | 4edca6a80408037b4f753b44c460810a51489522 (patch) | |
tree | e816798a4d61ce12fce0a944dff49ce3f651b470 /src/commandline.cpp | |
parent | Remove unneeded po::store (diff) | |
download | smolbote-4edca6a80408037b4f753b44c460810a51489522.tar.xz |
Remove unknown option parsing
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r-- | src/commandline.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
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) |