Add KAboutData's command line arguments to the QCommandLineParser
This adds back --author and --license.
This commit is contained in:
parent
7fe2b08bf9
commit
14c5637d68
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
main.cpp
|
@ -513,8 +513,10 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
|
|||
parser.addOption(lockOption);
|
||||
parser.addOption(replaceOption);
|
||||
parser.addOption(crashesOption);
|
||||
aboutData.setupCommandLine(&parser);
|
||||
|
||||
parser.process(a);
|
||||
aboutData.processCommandLine(&parser);
|
||||
|
||||
KWin::Application::setCrashCount(parser.value(crashesOption).toInt());
|
||||
a.setConfigLock(parser.isSet(lockOption));
|
||||
|
|
Loading…
Reference in a new issue