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(