Skip to content

Commit

Permalink
Fix error in command
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed Jul 9, 2018
1 parent a491e7d commit db341ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readthedocs/core/management/commands/update_repos.py
Expand Up @@ -28,6 +28,8 @@ class Command(BaseCommand):
help = __doc__

def add_arguments(self, parser):
parser.add_argument('slugs', nargs='+', type=str)

parser.add_argument(
'-r',
action='store_true',
Expand Down Expand Up @@ -56,7 +58,7 @@ def handle(self, *args, **options):
force = options['force']
version = options['version']
if args:
for slug in args:
for slug in options['slugs']:
if version and version != "all":
log.info("Updating version %s for %s", version, slug)
for version in Version.objects.filter(project__slug=slug, slug=version):
Expand Down

0 comments on commit db341ba

Please sign in to comment.