| 97 | |
| 98 | |
| 99 | def parse_arguments(argv: Sequence[str]) -> argparse.Namespace: |
| 100 | parser = argparse.ArgumentParser( |
| 101 | description="Select one VT-approved candidate per canonical target tuple." |
| 102 | ) |
| 103 | parser.add_argument("--candidates", required=True, type=pathlib.Path) |
| 104 | parser.add_argument("--objects-dir", required=True, type=pathlib.Path) |
| 105 | parser.add_argument("--out-dir", required=True, type=pathlib.Path) |
| 106 | policy = parser.add_mutually_exclusive_group(required=True) |
| 107 | policy.add_argument("--results", type=pathlib.Path) |
| 108 | policy.add_argument("--default-stripped", action="store_true") |
| 109 | return parser.parse_args(argv[1:]) |
| 110 | |
| 111 | |
| 112 | def regular_status(path: pathlib.Path, *, ceiling: int, label: str) -> os.stat_result: |