diff options
author | Ali92hm <ali92hm@gmail.com> | 2017-05-23 04:44:19 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-13 04:50:22 +0800 |
commit | 487ade1635699e27cdf9700545257e14ba08cf5e (patch) | |
tree | c8195fc38d68995cec1abeb301bf247bade6f076 /solc | |
parent | 1a9c503e93547fadc0a7a2dcd6d368f456f47460 (diff) | |
download | dexon-solidity-487ade1635699e27cdf9700545257e14ba08cf5e.tar dexon-solidity-487ade1635699e27cdf9700545257e14ba08cf5e.tar.gz dexon-solidity-487ade1635699e27cdf9700545257e14ba08cf5e.tar.bz2 dexon-solidity-487ade1635699e27cdf9700545257e14ba08cf5e.tar.lz dexon-solidity-487ade1635699e27cdf9700545257e14ba08cf5e.tar.xz 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.cpp | 6 |
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) |