()
| 128 | |
| 129 | |
| 130 | def main(): |
| 131 | parser = create_parser() |
| 132 | args = parser.parse_args() |
| 133 | if args.all: |
| 134 | run_all_benchmarks( |
| 135 | detector=args.detector, dataset=args.dataset, detailed=bool(args.detailed) |
| 136 | ) |
| 137 | else: |
| 138 | run_benchmark( |
| 139 | detector=args.detector if args.detector else _DEFAULT_DETECTOR, |
| 140 | dataset=args.dataset if args.dataset else _DEFAULT_DATASET, |
| 141 | detailed=bool(args.detailed), |
| 142 | ) |
| 143 | |
| 144 | |
| 145 | if __name__ == "__main__": |
no test coverage detected