From 87e8c8151436ec45236309710d47b97ae8248d49 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 24 Apr 2015 11:48:23 +0200 Subject: Do not handle combined JSON if option not given. --- CommandLineInterface.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CommandLineInterface.cpp') diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index 5e4c901f..eadc6c56 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -380,6 +380,9 @@ bool CommandLineInterface::processInput() void CommandLineInterface::handleCombinedJSON() { + if (!m_args.count("combined-json")) + return; + Json::Value output(Json::objectValue); set requests; -- cgit v1.2.3