mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Add a manual stage for cli-only interaction
This commit is contained in:
parent
4088f55ee6
commit
bf5792eb10
5 changed files with 30 additions and 45 deletions
|
|
@ -70,9 +70,8 @@ def _add_run_options(parser):
|
|||
help='Filename to check when running during `commit-msg`',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--hook-stage', choices=('commit', 'push', 'commit-msg'),
|
||||
default='commit',
|
||||
help='The stage during which the hook is fired e.g. commit or push.',
|
||||
'--hook-stage', choices=C.STAGES, default='commit',
|
||||
help='The stage during which the hook is fired. One of %(choices)s',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--show-diff-on-failure', action='store_true',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue