From f689ad1021a7805f6f8b6a81f534b4cb9ca91f51 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 6 Oct 2015 16:19:51 +0200 Subject: Change replay So far only includes modifications and additions, removals are not yet stored as separate revisions. --- examples/client/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/client/main.cpp b/examples/client/main.cpp index a0ca51b..ead9dd6 100644 --- a/examples/client/main.cpp +++ b/examples/client/main.cpp @@ -128,6 +128,7 @@ int main(int argc, char *argv[]) cliOptions.addPositionalArgument(QObject::tr("[resource]"), QObject::tr("A resource to connect to")); cliOptions.addOption(QCommandLineOption("clear")); + cliOptions.addOption(QCommandLineOption("debuglevel")); cliOptions.addHelpOption(); cliOptions.process(app); QStringList resources = cliOptions.positionalArguments(); @@ -143,6 +144,9 @@ int main(int argc, char *argv[]) } return 0; } + if (cliOptions.isSet("debuglevel")) { + Akonadi2::Log::setDebugOutputLevel(static_cast(cliOptions.value("debuglevel").toInt())); + } //Ensure resource is ready for (const auto &resource : resources) { -- cgit v1.2.3