From 2a6b6f14e13e125e9a6be727fd75b00906f3a492 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 31 Aug 2023 15:08:46 +0100 Subject: [PATCH] Add -f to run --- pre_commit/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/main.py b/pre_commit/main.py index 9dfce2c2..a0b581ab 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -66,7 +66,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None: help='Run on all the files in the repo.', ) mutex_group.add_argument( - '--files', nargs='*', default=[], + '--files', '-f', nargs='*', default=[], help='Specific filenames to run hooks on.', ) parser.add_argument(