def output_detectors(detector_classes):
detectors_list = []<EOL>for detector in detector_classes:<EOL><INDENT>argument = detector.ARGUMENT<EOL>help_info = detector.HELP<EOL>impact = detector.IMPACT<EOL>confidence = classification_txt[detector.CONFIDENCE]<EOL>detectors_list.append((argument, help_info, impact, confidence))<EOL><DEDENT>table = PrettyTable(["<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>"])<EOL>detectors_list = sorted(detectors_list, key=lambda element: (element[<NUM_LIT:2>], element[<NUM_LIT:3>], element[<NUM_LIT:0>]))<EOL>idx = <NUM_LIT:1><EOL>for (argument, help_info, impact, confidence) in detectors_list:<EOL><INDENT>table.add_row([idx, argument, help_info, classification_txt[impact], confidence])<EOL>idx = idx + <NUM_LIT:1><EOL><DEDENT>print(table)<EOL>
Copied from
https://github.com/trailofbits/slither/blob/563d5118298e4cae7f0ea5f2a531f0dcdcebd64d/slither/utils/command_line.py