Commit e6bf2d51 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to add feedback info from commandline

parent 423bde95
......@@ -58,6 +58,9 @@ static void kmail_options(QCommandLineParser *parser)
QStringLiteral("view"),
i18n("View the given message file"),
QStringLiteral("url"));
#ifdef WITH_KUSERFEEDBACK
parser->addOption(QCommandLineOption(QStringLiteral("feedback"), i18n("Lists the available options for user feedback")));
#endif
parser->addOptions(options);
parser->addPositionalArgument(
......
......@@ -135,6 +135,13 @@ int main(int argc, char *argv[])
cmdArgs->process(args);
about.processCommandLine(cmdArgs);
#ifdef WITH_KUSERFEEDBACK
if(cmdArgs->isSet(QStringLiteral("feedback"))) {
//QTextStream(stdout) << UserFeedBackManager::self()->userFeedbackProvider()->describeDataSources() << '\n';
return 0;
}
#endif
if (!KMailApplication::start(args)) {
qCDebug(KMAIL_LOG) << "Another instance of KMail already running";
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment