Skip to content

Commit

Permalink
slither, slither-doctor: fix completion generation
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Feb 20, 2024
1 parent 2db53aa commit 941b6f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions slither/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def parse_filter_paths(args: argparse.Namespace) -> List[str]:
def parse_args(
detector_classes: List[Type[AbstractDetector]], printer_classes: List[Type[AbstractPrinter]]
) -> argparse.Namespace:
usage = "slither target [flag]\n"
usage = "slither target [options]\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"
Expand All @@ -293,7 +293,7 @@ def parse_args(

shtab.add_argument_to(parser)

parser.add_argument("filename", help=argparse.SUPPRESS)
parser.add_argument("filename", metavar="target", help="File or project target, see above")

cryticparser.init(parser)

Expand Down
6 changes: 3 additions & 3 deletions slither/tools/doctor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def parse_args() -> argparse.Namespace:


def main() -> None:
# log on stdout to keep output in order
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, force=True)

args = parse_args()
kwargs = vars(args)

# log on stdout to keep output in order
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, force=True)

for check in ALL_CHECKS:
with report_section(check.title):
check.function(**kwargs)
Expand Down

0 comments on commit 941b6f6

Please sign in to comment.