aboutsummaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-21 13:59:32 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-21 13:59:32 +0200
commit4edca6a80408037b4f753b44c460810a51489522 (patch)
treee816798a4d61ce12fce0a944dff49ce3f651b470 /src/commandline.cpp
parentRemove unneeded po::store (diff)
downloadsmolbote-4edca6a80408037b4f753b44c460810a51489522.tar.xz
Remove unknown option parsing
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r--src/commandline.cpp12
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)