We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--pretty-json
By default the compiler prints any JSON output in a compact form:
echo "contract C {}" | solc - --combined-json abi
{"contracts":{"<stdin>:C":{"abi":[]}},"version":"0.8.6+commit.11564f7e.Linux.g++"}
You can use --pretty-json option to get nicely indented output from --combined-json option:
--combined-json
echo "contract C {}" | solc - --combined-json abi --pretty-json
{ "contracts": { "<stdin>:C": { "abi": [] } }, "version": "0.8.6+commit.11564f7e.Linux.g++" }
This does not work with --standard-json. Make --pretty-json affect it too.
--standard-json
Optionally, it would also be nice if you could specify the indent size for the option to make the output easier to read (e.g. --pretty-json 4).
--pretty-json 4
The text was updated successfully, but these errors were encountered:
Once this is done, we could also make test/cmdlineTest.sh use that option to print test output in a more readable way.
test/cmdlineTest.sh
Sorry, something went wrong.
--verbose
--json-indent
Successfully merging a pull request may close this issue.
By default the compiler prints any JSON output in a compact form:
You can use
--pretty-json
option to get nicely indented output from--combined-json
option:This does not work with
--standard-json
. Make--pretty-json
affect it too.Optionally, it would also be nice if you could specify the indent size for the option to make the output easier to read (e.g.
--pretty-json 4
).The text was updated successfully, but these errors were encountered: