blob: 6f6c7b7238f85964d495c2c568445272b6c06c51 [file] [log] [blame]
Anthony Sottile8f615292022-01-15 19:24:05 -05001from __future__ import annotations
2
Anthony Sottileb9cc9d72020-05-14 16:00:29 -07003import sys
Anthony Sottileb9cc9d72020-05-14 16:00:29 -07004from typing import Sequence
5
6
Anthony Sottile8f615292022-01-15 19:24:05 -05007def main(argv: Sequence[str] | None = None) -> int:
Anthony Sottileb9cc9d72020-05-14 16:00:29 -07008 argv = argv if argv is not None else sys.argv[1:]
Pedro Calleja926208f2020-05-18 21:27:24 -05009 hookid, new_hookid, url = argv[:3]
Anthony Sottileb9cc9d72020-05-14 16:00:29 -070010 raise SystemExit(
11 f'`{hookid}` has been removed -- use `{new_hookid}` from {url}',
12 )
13
14
15if __name__ == '__main__':
Anthony Sottile39ab2ed2021-10-23 13:23:50 -040016 raise SystemExit(main())