mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Update autoupdate help message.
This commit is contained in:
parent
bba24b6535
commit
f0352bf0be
1 changed files with 5 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ def main(argv=None):
|
||||||
subparsers = parser.add_subparsers(dest='command')
|
subparsers = parser.add_subparsers(dest='command')
|
||||||
|
|
||||||
install_parser = subparsers.add_parser(
|
install_parser = subparsers.add_parser(
|
||||||
'install', help='Intall the pre-commit script.',
|
'install', help='Install the pre-commit script.',
|
||||||
)
|
)
|
||||||
install_parser.add_argument(
|
install_parser.add_argument(
|
||||||
'-f', '--overwrite', action='store_true',
|
'-f', '--overwrite', action='store_true',
|
||||||
|
|
@ -48,7 +48,10 @@ def main(argv=None):
|
||||||
|
|
||||||
subparsers.add_parser('clean', help='Clean out pre-commit files.')
|
subparsers.add_parser('clean', help='Clean out pre-commit files.')
|
||||||
|
|
||||||
subparsers.add_parser('autoupdate', help='Auto-update hooks config.')
|
subparsers.add_parser(
|
||||||
|
'autoupdate',
|
||||||
|
help="Auto-update pre-commit config to the latest repos' versions.",
|
||||||
|
)
|
||||||
|
|
||||||
run_parser = subparsers.add_parser('run', help='Run hooks.')
|
run_parser = subparsers.add_parser('run', help='Run hooks.')
|
||||||
run_parser.add_argument('hook', nargs='?', help='A single hook-id to run')
|
run_parser.add_argument('hook', nargs='?', help='A single hook-id to run')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue