Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Apr 1, 2019
2 parents 6a4ad18 + 0891f9a commit 6e83e11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
description='Slither is a Solidity static analysis framework written in Python 3.',
url='https://github.com/trailofbits/slither',
author='Trail of Bits',
version='0.6.0',
version='0.6.1',
packages=find_packages(),
python_requires='>=3.6',
install_requires=['prettytable>=0.7.2', 'pysha3>=1.0.2'],
Expand Down
7 changes: 7 additions & 0 deletions slither/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ def parse_args(detector_classes, printer_classes):
action='store_true',
default=defaults_flag_in_config['legacy_ast'])

parser.add_argument('--ignore-return-value',
help=argparse.SUPPRESS,
action='store_true',
default=False)

# if the json is splitted in different files
parser.add_argument('--splitted',
help=argparse.SUPPRESS,
Expand Down Expand Up @@ -591,6 +596,8 @@ def main_impl(all_detector_classes, all_printer_classes):
logger.info('%s analyzed (%d contracts)', filename, number_contracts)
else:
logger.info('%s analyzed (%d contracts), %d result(s) found', filename, number_contracts, len(results))
if args.ignore_return_value:
return
exit(results)

except Exception:
Expand Down

0 comments on commit 6e83e11

Please sign in to comment.