Opened 10 years ago

Closed 10 years ago

#23309 closed Bug (fixed)

call_commands lacks some code to act like as run_from_argv

Reported by: Raffaele Salmaso Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: raffaele.salmaso@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://code.djangoproject.com/changeset/2cc8ffe2580080 made call_command accept option name parameter, but lacks the legagy optparse hack as found in django/core/management/base.py:352-357

Change History (5)

comment:1 by Raffaele Salmaso, 10 years ago

I've made a PR https://github.com/django/django/pull/3081
Added missing code and some tests.

comment:2 by Claude Paroz, 10 years ago

Has patch: set
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:4 by Tim Graham, 10 years ago

Summary: call_commands laks some code to act like as run_from_argvcall_commands lacks some code to act like as run_from_argv

comment:5 by Claude Paroz <claude@…>, 10 years ago

Resolution: fixed
Status: newclosed

In e0a98e2374b1d7660ef3841a5bb2626f1c69970a:

Fixed #23309 -- Fixed call_command to parse args correctly

Note: See TracTickets for help on using tickets.
Back to Top