Index: main.cpp =================================================================== diff -u -rcbea4224ad67eecc2e7c4c66df9a7db711c72832 -r73b965e55528619f22a12ae3b3408c9dcecc9144 --- main.cpp (.../main.cpp) (revision cbea4224ad67eecc2e7c4c66df9a7db711c72832) +++ main.cpp (.../main.cpp) (revision 73b965e55528619f22a12ae3b3408c9dcecc9144) @@ -69,6 +69,7 @@ bool gSendEmptyKeepAwake = false ; bool gFakeSeqAtBegin = false ; bool gDisableHunhandledReport = false ; +bool gDisableAlarms = false ; bool gConsoleoutFrameInterface = false ; bool gConsoleoutCanInterface = false ; @@ -145,13 +146,19 @@ QCoreApplication::translate("main", "Disable unhandled messages report as an error in the log")); parser.addOption(optionDisableHunhandledReport); + // --- -u : disable-unhandled-report + QCommandLineOption optionDisableAlarms(QStringList() << "q" << "disable-alarms", + QCoreApplication::translate("main", "Disables UI display of alarms")); + parser.addOption(optionDisableAlarms); + // --- parse command lines parser.process(*qApp); gConsoleoutCanInterface = parser.isSet(optionConsoleoutCanInterface ); gConsoleoutFrameInterface = parser.isSet(optionConsoleoutFrameInterface ); gDisableHunhandledReport = parser.isSet(optionDisableHunhandledReport ); + gDisableAlarms = parser.isSet(optionDisableAlarms ); if (parser.isSet(optionSendEmptyKeepAwake)) gSendEmptyKeepAwake = true; bool ok = false;