Add repo option to autoupdate

This commit is contained in:
Kevin Hock 2017-11-06 17:13:47 -08:00 committed by Kevin Hock
parent 0ec3b5556f
commit 4d0c400066
3 changed files with 38 additions and 3 deletions

View file

@ -167,6 +167,12 @@ def main(argv=None):
'tagged version (the default behavior).'
),
)
autoupdate_parser.add_argument(
'--repo', nargs=1, default=None,
help=(
'Repository to update the hooks of.'
),
)
migrate_config_parser = subparsers.add_parser(
'migrate-config',
@ -245,7 +251,11 @@ def main(argv=None):
elif args.command == 'autoupdate':
if args.tags_only:
logger.warning('--tags-only is the default')
return autoupdate(runner, tags_only=not args.bleeding_edge)
return autoupdate(
runner,
tags_only=not args.bleeding_edge,
repo=args.repo,
)
elif args.command == 'migrate-config':
return migrate_config(runner)
elif args.command == 'run':