@ -18,6 +18,7 @@ from crytic_compile import cryticparser, CryticCompile
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
import shtab
from slither . detectors import all_detectors
from slither . detectors . abstract_detector import AbstractDetector , DetectorClassification
@ -290,6 +291,8 @@ def parse_args(
usage = usage ,
)
shtab . add_argument_to ( parser )
parser . add_argument ( " filename " , help = argparse . SUPPRESS )
cryticparser . init ( parser )
@ -465,28 +468,28 @@ def parse_args(
help = ' Export the results as a JSON file ( " --json - " to export to stdout) ' ,
action = " store " ,
default = defaults_flag_in_config [ " json " ] ,
)
) . complete = shtab . FILE
group_misc . add_argument (
" --sarif " ,
help = ' Export the results as a SARIF JSON file ( " --sarif - " to export to stdout) ' ,
action = " store " ,
default = defaults_flag_in_config [ " sarif " ] ,
)
) . complete = shtab . FILE
group_misc . add_argument (
" --sarif-input " ,
help = " Sarif input (beta) " ,
action = " store " ,
default = defaults_flag_in_config [ " sarif_input " ] ,
)
) . complete = shtab . FILE
group_misc . add_argument (
" --sarif-triage " ,
help = " Sarif triage (beta) " ,
action = " store " ,
default = defaults_flag_in_config [ " sarif_triage " ] ,
)
) . complete = shtab . FILE
group_misc . add_argument (
" --json-types " ,
@ -502,13 +505,14 @@ def parse_args(
help = " Export the results as a zipped JSON file " ,
action = " store " ,
default = defaults_flag_in_config [ " zip " ] ,
)
) . complete = shtab . FILE
group_misc . add_argument (
" --zip-type " ,
help = f ' Zip compression type. One of { " , " . join ( ZIP_TYPES_ACCEPTED . keys ( ) ) } . Default lzma ' ,
action = " store " ,
default = defaults_flag_in_config [ " zip_type " ] ,
choices = list ( ZIP_TYPES_ACCEPTED . keys ( ) ) ,
)
group_misc . add_argument (
@ -540,7 +544,7 @@ def parse_args(
action = " store " ,
dest = " config_file " ,
default = None ,
)
) . complete = shtab . FILE
group_misc . add_argument (
" --change-line-prefix " ,