aboutsummaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-30 12:25:32 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-30 12:25:32 +0100
commite4f237152d5581ebb7dc25fec1ba60cf2655f2e9 (patch)
treedda3fedbc4a79757b540a5ab042da6908abb3e3e /src/commandline.cpp
parentSplit cmd parsing from main into CommandLine class (diff)
downloadsmolbote-e4f237152d5581ebb7dc25fec1ba60cf2655f2e9.tar.xz
Added profile and plugin list to About dialog
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r--src/commandline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp
index adfdf52..e10e638 100644
--- a/src/commandline.cpp
+++ b/src/commandline.cpp
@@ -73,11 +73,11 @@ void CommandLine::parseCommandLine(const QCoreApplication &app)
for(const QString &opt : unknownOptionNames()) {
QCommandLineOption o(opt, "dummy desc", "dummy value");
- opts.append(o);
+ unknownOptions.append(o);
}
// add list and reparse to set the new options
- addOptions(opts);
+ addOptions(unknownOptions);
parse(app.arguments());
}
void CommandLine::printHelp(int exitCode)
@@ -108,7 +108,7 @@ void CommandLine::printHelp(int exitCode)
<< std::endl
<< std::endl;
- exit(0);
+ exit(exitCode);
}
void CommandLine::printVersion()
{