Add fail-fast argument for run command

This commit is contained in:
JulianMaurin 2025-08-25 23:20:07 +02:00 committed by anthony sottile
parent e70b313c80
commit c78f248c60
5 changed files with 22 additions and 1 deletions

View file

@ -76,6 +76,10 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
'--show-diff-on-failure', action='store_true',
help='When hooks fail, run `git diff` directly afterward.',
)
parser.add_argument(
'--fail-fast', action='store_true',
help='Stop after the first failing hook.',
)
parser.add_argument(
'--hook-stage',
choices=clientlib.STAGES,