From 487ade1635699e27cdf9700545257e14ba08cf5e Mon Sep 17 00:00:00 2001 From: Ali92hm Date: Mon, 22 May 2017 13:44:19 -0700 Subject: Enabling --combined-json to output to file --- solc/CommandLineInterface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'solc') diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 9367a71c..84c88b24 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -910,7 +910,11 @@ void CommandLineInterface::handleCombinedJSON() output[g_strSources][sourceCode.first]["AST"] = converter.toJson(m_compiler->ast(sourceCode.first)); } } - cout << dev::jsonCompactPrint(output) << endl; + + if (m_args.count(g_argOutputDir)) + createJson("combined", output); + else + cout << dev::jsonCompactPrint(output) << endl; } void CommandLineInterface::handleAst(string const& _argStr) -- cgit v1.2.3