$ python3 -I scripts/dev/check-docs-links.py --help
usage: check-docs-links.py [-h] --root ROOT [--allow SOURCE=TARGET] [--public]
                           [paths ...]

Check local Markdown file and anchor links; never accesses the network.

positional arguments:
  paths                 root-relative Markdown files or directories (default:
                        the whole root)

options:
  -h, --help            show this help message and exit
  --root ROOT           repository or public-tree root
  --allow SOURCE=TARGET
                        allow one exact root-relative source and raw target
                        pair (repeatable)
  --public              public-tree mode: historical allowlist entries are
                        forbidden
[exit 0]
