From a3cbecc2efd099cc3b80916415b95dd63ed75a62 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sat, 18 Nov 2023 14:19:20 +0100 Subject: [PATCH] Add missing help to --verbose param --- pre_commit/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pre_commit/main.py b/pre_commit/main.py index 18c978a8..851369db 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -59,7 +59,10 @@ def _add_hook_type_option(parser: argparse.ArgumentParser) -> None: def _add_run_options(parser: argparse.ArgumentParser) -> None: parser.add_argument('hook', nargs='?', help='A single hook-id to run') - parser.add_argument('--verbose', '-v', action='store_true', default=False) + parser.add_argument( + '--verbose', '-v', action='store_true', default=False, + help='Forces the output of the hook to be printed even when the hook passes.', + ) mutex_group = parser.add_mutually_exclusive_group(required=False) mutex_group.add_argument( '--all-files', '-a', action='store_true', default=False,