()
| 93 | |
| 94 | |
| 95 | def parse_args(): |
| 96 | parser = argparse.ArgumentParser() |
| 97 | parser.add_argument('-i', '--input', |
| 98 | help='Test names produced by --list-tests written ' |
| 99 | 'into a file. If not set, run --list-tests') |
| 100 | parser.add_argument('-o', '--output', |
| 101 | help='Result of the bisection') |
| 102 | parser.add_argument('-n', '--max-tests', type=int, default=1, |
| 103 | help='Maximum number of tests to stop the bisection ' |
| 104 | '(default: 1)') |
| 105 | parser.add_argument('-N', '--max-iter', type=int, default=100, |
| 106 | help='Maximum number of bisection iterations ' |
| 107 | '(default: 100)') |
| 108 | # FIXME: document that following arguments are test arguments |
| 109 | |
| 110 | args, test_args = parser.parse_known_args() |
| 111 | args.test_args = test_args |
| 112 | return args |
| 113 | |
| 114 | |
| 115 | def main(): |
searching dependent graphs…