diff options
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() { |