-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
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
WIP: cli improvements #55
Conversation
90ef3de
to
006d14b
Compare
@redshark1802 - Looking good. Just provided some brief feedback to keep the output consistent with how it was previously. |
eea60d9
to
bde212d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(don't forget to remove WIP
from the title when you end with the PR)
* `--printer-inheritance`: Print the inheritance relations | ||
* `--printer-inheritance-graph`: Print the inheritance graph in a file | ||
* `--printer-vars-and-auth`: Print the variables written and the check on `msg.sender` of each function | ||
By default, the `contract-summary` printer is used. Use --printers comma-separated list of printers, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning this up a little, looking good 👍
README.md
Outdated
|
||
## Checks available | ||
* `contract-summary`: Print a summary of the contracts | ||
* `quick-summary`: Print a quick summary of the contracts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick - might use quick-contract-summary
for clarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, it's a typo, the printer was renamed function-summary
https://github.com/trailofbits/slither/wiki/Printer-documentation#function-summary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The printer quick-summary
doesn't exist, I removed it from the list.
4b23ad7
to
f3de8fe
Compare
- help is printed when no arguments are supplied - rework detector arguments: detectors are now a comma-separated list, defaults to all - rework printer arguments: printers are now a comma-separated list, defaults to contract-summary - add version command - add --list-detectors and --list-printers - update README
f3de8fe
to
f6ed3ba
Compare
fixes #50