aboutsummaryrefslogtreecommitdiffstats
path: root/solc
diff options
context:
space:
mode:
authorAli92hm <ali92hm@gmail.com>2017-05-23 04:44:19 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-13 04:50:22 +0800
commit487ade1635699e27cdf9700545257e14ba08cf5e (patch)
treec8195fc38d68995cec1abeb301bf247bade6f076 /solc
parent1a9c503e93547fadc0a7a2dcd6d368f456f47460 (diff)
downloaddexon-solidity-487ade1635699e27cdf9700545257e14ba08cf5e.tar.gz
dexon-solidity-487ade1635699e27cdf9700545257e14ba08cf5e.tar.zst
dexon-solidity-487ade1635699e27cdf9700545257e14ba08cf5e.zip
Enabling --combined-json to output to file
Diffstat (limited to 'solc')
-rw-r--r--solc/CommandLineInterface.cpp6
1 files changed, 5 insertions, 1 deletions
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)