mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
feat: add log-file arg
This commit is contained in:
parent
a1f1d19156
commit
03c592cbd4
1 changed files with 4 additions and 0 deletions
|
|
@ -69,6 +69,10 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
|||
'--files', nargs='*', default=[],
|
||||
help='Specific filenames to run hooks on.',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--log-file', type=str,
|
||||
help='Save failed/passed logs to a log file.',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--show-diff-on-failure', action='store_true',
|
||||
help='When hooks fail, run `git diff` directly afterward.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue