mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Allow autoupdate --repo to be specified multiple times
This commit is contained in:
parent
29715c9268
commit
f76d3c4f95
3 changed files with 7 additions and 6 deletions
|
|
@ -168,7 +168,8 @@ def main(argv=None):
|
|||
),
|
||||
)
|
||||
autoupdate_parser.add_argument(
|
||||
'--repo', help='Only update this repository.',
|
||||
'--repo', dest='repos', action='append', metavar='REPO',
|
||||
help='Only update this repository -- may be specified multiple times.',
|
||||
)
|
||||
|
||||
migrate_config_parser = subparsers.add_parser(
|
||||
|
|
@ -251,7 +252,7 @@ def main(argv=None):
|
|||
return autoupdate(
|
||||
runner,
|
||||
tags_only=not args.bleeding_edge,
|
||||
repo=args.repo,
|
||||
repos=args.repos,
|
||||
)
|
||||
elif args.command == 'migrate-config':
|
||||
return migrate_config(runner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue