Skip to content

Commit 1fb6dd3

Browse files
authored
Merge pull request #4345 from stsewd/fix-command-error
Fix error in command
2 parents 4490c08 + db341ba commit 1fb6dd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/core/management/commands/update_repos.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class Command(BaseCommand):
2828
help = __doc__
2929

3030
def add_arguments(self, parser):
31+
parser.add_argument('slugs', nargs='+', type=str)
32+
3133
parser.add_argument(
3234
'-r',
3335
action='store_true',
@@ -56,7 +58,7 @@ def handle(self, *args, **options):
5658
force = options['force']
5759
version = options['version']
5860
if args:
59-
for slug in args:
61+
for slug in options['slugs']:
6062
if version and version != "all":
6163
log.info("Updating version %s for %s", version, slug)
6264
for version in Version.objects.filter(project__slug=slug, slug=version):

0 commit comments

Comments
 (0)