2022-01-16 08:24:05 +08:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2020-05-15 07:00:29 +08:00
|
|
|
import sys
|
2024-10-12 07:30:07 +08:00
|
|
|
from collections.abc import Sequence
|
2020-05-15 07:00:29 +08:00
|
|
|
|
|
|
|
|
2022-01-16 08:24:05 +08:00
|
|
|
def main(argv: Sequence[str] | None = None) -> int:
|
2020-05-15 07:00:29 +08:00
|
|
|
argv = argv if argv is not None else sys.argv[1:]
|
2020-05-19 10:27:24 +08:00
|
|
|
hookid, new_hookid, url = argv[:3]
|
2020-05-15 07:00:29 +08:00
|
|
|
raise SystemExit(
|
|
|
|
f'`{hookid}` has been removed -- use `{new_hookid}` from {url}',
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2021-10-24 01:23:50 +08:00
|
|
|
raise SystemExit(main())
|