mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
hotfix: the user may be define an extra arguments for a removed hook
This commit is contained in:
parent
37d0e19fd8
commit
926208fb31
2 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ from typing import Sequence
|
|||
|
||||
def main(argv: Optional[Sequence[str]] = None) -> int:
|
||||
argv = argv if argv is not None else sys.argv[1:]
|
||||
hookid, new_hookid, url = argv
|
||||
hookid, new_hookid, url = argv[:3]
|
||||
raise SystemExit(
|
||||
f'`{hookid}` has been removed -- use `{new_hookid}` from {url}',
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue