diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-30 12:25:32 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-30 12:25:32 +0100 |
commit | e4f237152d5581ebb7dc25fec1ba60cf2655f2e9 (patch) | |
tree | dda3fedbc4a79757b540a5ab042da6908abb3e3e /src/commandline.cpp | |
parent | Split cmd parsing from main into CommandLine class (diff) | |
download | smolbote-e4f237152d5581ebb7dc25fec1ba60cf2655f2e9.tar.xz |
Added profile and plugin list to About dialog
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r-- | src/commandline.cpp | 6 |
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() { |