| 86 | |
| 87 | |
| 88 | def parse_arguments(argv: Sequence[str]) -> argparse.Namespace: |
| 89 | parser = argparse.ArgumentParser( |
| 90 | description="Bind all fourteen canonical release containers to release-selection.tsv." |
| 91 | ) |
| 92 | parser.add_argument("--selection", required=True, type=pathlib.Path) |
| 93 | parser.add_argument("--archive-dir", required=True, type=pathlib.Path) |
| 94 | parser.add_argument( |
| 95 | "--require-policy", |
| 96 | choices=("virustotal-v2", "unscanned-dry-run"), |
| 97 | help="reject a selection produced under any other policy", |
| 98 | ) |
| 99 | return parser.parse_args(argv[1:]) |
| 100 | |
| 101 | |
| 102 | def regular_status(path: pathlib.Path, *, ceiling: int, label: str) -> os.stat_result: |