﻿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
33430	Calling command via `call_command` with option that is `required` and has set `dest` leads to an error	Adam Mičuda	ravi kunwar	"Calling command via `call_command` with option that is `required` and has set `dest` leads to an error:

""Error: the following arguments are required: <option>""

----

Code to simulate behaviour:

{{{
from django.core.management.base import BaseCommand, CommandParser

class Command(BaseCommand):
    def add_arguments(self, parser: CommandParser):
        # parser.add_argument('--from') # OK
        # parser.add_argument('--from', dest='from_') # OK
        # parser.add_argument('--from', required=True) # OK
        parser.add_argument('--from', required=True, dest='from_') # leads to an error

    def handle(self, *args, **options):
        ...
}}}

and calling the command:

{{{
call_command('bug_report', **{ 'from': '2022-01-11' })
}}}"	Bug	closed	Core (Management commands)	3.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
