#32153: Support for list arguments inside exclusive required groups
-------------------------------------+-------------------------------------
Reporter: Mark Gajdosik | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: call_command, | Triage Stage: Accepted
exclusive group, nargs, error |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* type: Uncategorized => Bug
* component: Uncategorized => Core (Management commands)
* stage: Unreviewed => Accepted
Comment:
Thanks for this report. Yes we should change `parse_args` to the list of
arguments and their values without using the ` = ` syntax, e.g. pass `['--
foo', '1', '2']` instead of `['--foo=1 2']`. All of these calls should be
supported:
{{{
management.call_command('command', '--foo 1 2')
management.call_command('command', foo=[1, 2])
management.call_command('command', foo, [1, 2])
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32153#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.23f81dfe471c5d0c916e9f8c5173b0bc%40djangoproject.com.