diff --git a/scripts/ci_test_cli.sh b/scripts/ci_test_cli.sh index 9c9ed56951..9dbeee1da2 100755 --- a/scripts/ci_test_cli.sh +++ b/scripts/ci_test_cli.sh @@ -6,11 +6,6 @@ set -euo pipefail solc-select use 0.7.0 -if ! slither "tests/e2e/config/test_json_config/test.sol" --solc-ast --no-fail-pedantic; then - echo "--solc-ast failed" - exit 1 -fi - if ! slither "tests/e2e/config/test_json_config/test.sol" --solc-disable-warnings --no-fail-pedantic; then echo "--solc-disable-warnings failed" exit 1 diff --git a/slither/__main__.py b/slither/__main__.py index db0c543f05..7ceb6d2089 100644 --- a/slither/__main__.py +++ b/slither/__main__.py @@ -622,13 +622,6 @@ def parse_args( default="#", ) - group_misc.add_argument( - "--solc-ast", - help="Provide the contract as a json AST", - action="store_true", - default=False, - ) - group_misc.add_argument( "--generate-patches", help="Generate patches (json output only)", @@ -906,7 +899,7 @@ def main_impl( filename = args.filename # Determine if we are handling ast from solc - if args.solc_ast or (filename.endswith(".json") and not is_supported(filename)): + if filename.endswith(".json") and not is_supported(filename): globbed_filenames = glob.glob(filename, recursive=True) filenames = glob.glob(os.path.join(filename, "*.json")) if not filenames: