Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:crytic/slither into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Jul 8, 2021
2 parents 2fcde62 + da326aa commit 403e96c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions slither/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

from crytic_compile import cryticparser
from crytic_compile.platform.standard import generate_standard_export
from crytic_compile.platform.etherscan import SUPPORTED_NETWORK
from crytic_compile import compile_all, is_supported

from slither.detectors import all_detectors
Expand Down Expand Up @@ -270,12 +271,20 @@ def parse_filter_paths(args):


def parse_args(detector_classes, printer_classes): # pylint: disable=too-many-statements

usage = "slither target [flag]\n"
usage += "\ntarget can be:\n"
usage += "\t- file.sol // a Solidity file\n"
usage += "\t- project_directory // a project directory. See https://github.com/crytic/crytic-compile/#crytic-compile for the supported platforms\n"
usage += "\t- 0x.. // a contract on mainet\n"
usage += f"\t- NETWORK:0x.. // a contract on a different network. Supported networks: {','.join(x[:-1] for x in SUPPORTED_NETWORK)}\n"

parser = argparse.ArgumentParser(
description="Slither. For usage information, see https://github.com/crytic/slither/wiki/Usage",
usage="slither.py contract.sol [flag]",
description="For usage information, see https://github.com/crytic/slither/wiki/Usage",
usage=usage,
)

parser.add_argument("filename", help="contract.sol")
parser.add_argument("filename", help=argparse.SUPPRESS)

cryticparser.init(parser)

Expand Down
2 changes: 1 addition & 1 deletion slither/detectors/variables/unused_state_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class UnusedStateVars(AbstractDetector):
IMPACT = DetectorClassification.INFORMATIONAL
CONFIDENCE = DetectorClassification.HIGH

WIKI = "https://github.com/crytic/slither/wiki/Detector-Documentation#unused-state-variables"
WIKI = "https://github.com/crytic/slither/wiki/Detector-Documentation#unused-state-variable"

WIKI_TITLE = "Unused state variable"
WIKI_DESCRIPTION = "Unused state variable."
Expand Down

0 comments on commit 403e96c

Please sign in to comment.