﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32153	Support for list arguments inside exclusive required groups	Mark Gajdosik	nobody	"Are there any plans to add support for the following?

{{{
from django.core.management import BaseCommand

class Command(BaseCommand):
    def add_arguments(self, parser):
        group = parser.add_mutually_exclusive_group(required=True)
        group.add_argument('--foo', nargs='+', type=int)

    def handle(self, *args, **options):
        pass
}}}

When calling the above using `call_command`:

{{{
call_command('call_command_test', foo=[1, 2, 3])
# Raises: django.core.management.base.CommandError: Error: one of the arguments --foo is required

call_command('call_command_test', '--foo=1', '--foo=2', '--foo=3')
# Option 'foo' will be of value [3]
}}}

I can't think of any workarounds other than setting `type=str` (somehow, that works fine) and coercing manually. Thank you!"	Uncategorized	new	Uncategorized	dev	Normal		call_command, exclusive group, nargs, error		Unreviewed	0	0	0	0	0	0
