Skip to content

Commit e671830

Browse files
committed
store_true does not need default=...
1 parent e70b313 commit e671830

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pre_commit/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ def _add_hook_type_option(parser: argparse.ArgumentParser) -> None:
6262

6363
def _add_run_options(parser: argparse.ArgumentParser) -> None:
6464
parser.add_argument('hook', nargs='?', help='A single hook-id to run')
65-
parser.add_argument('--verbose', '-v', action='store_true', default=False)
65+
parser.add_argument('--verbose', '-v', action='store_true')
6666
mutex_group = parser.add_mutually_exclusive_group(required=False)
6767
mutex_group.add_argument(
68-
'--all-files', '-a', action='store_true', default=False,
68+
'--all-files', '-a', action='store_true',
6969
help='Run on all the files in the repo.',
7070
)
7171
mutex_group.add_argument(
@@ -275,7 +275,7 @@ def _add_cmd(name: str, *, help: str) -> argparse.ArgumentParser:
275275
)
276276
_add_hook_type_option(install_parser)
277277
install_parser.add_argument(
278-
'--allow-missing-config', action='store_true', default=False,
278+
'--allow-missing-config', action='store_true',
279279
help=(
280280
'Whether to allow a missing `pre-commit` configuration file '
281281
'or exit with a failure code.'

0 commit comments

Comments
 (0)