File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
from crytic_compile import cryticparser
18
18
from crytic_compile .platform .standard import generate_standard_export
19
+ from crytic_compile .platform .etherscan import SUPPORTED_NETWORK
19
20
from crytic_compile import compile_all , is_supported
20
21
21
22
from slither .detectors import all_detectors
@@ -270,12 +271,20 @@ def parse_filter_paths(args):
270
271
271
272
272
273
def parse_args (detector_classes , printer_classes ): # pylint: disable=too-many-statements
274
+
275
+ usage = "slither.py target [flag]\n "
276
+ usage += "\n target can be:\n "
277
+ usage += "\t - file.sol // a Solidity file\n "
278
+ usage += "\t - project_directory // a project directory. See https://github.com/crytic/crytic-compile/#crytic-compile for the supported platforms\n "
279
+ usage += "\t - 0x.. // a contract on mainet\n "
280
+ usage += f"\t - NETWORK:0x.. // a contract on a different network. Supported networks: { ',' .join (x [:- 1 ] for x in SUPPORTED_NETWORK )} \n "
281
+
273
282
parser = argparse .ArgumentParser (
274
283
description = "Slither. For usage information, see https://github.com/crytic/slither/wiki/Usage" ,
275
- usage = "slither.py contract.sol [flag]" ,
284
+ usage = usage ,
276
285
)
277
286
278
- parser .add_argument ("filename" , help = "contract.sol" )
287
+ parser .add_argument ("filename" , help = argparse . SUPPRESS )
279
288
280
289
cryticparser .init (parser )
281
290
You can’t perform that action at this time.
0 commit comments