#23306: Cannot call a command with --name option
-------------------------------------+-------------------------------------
     Reporter:  rsalmaso             |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Core (Management     |                  Version:
  commands)                          |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by rsalmaso):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Working on https://code.djangoproject.com/ticket/23302 I'm adding some
 tests to migrations/test_commands and hits a limitation with call_command:
 cannot pass name='xyz' as option.
 The more compatible way to call it is to have another function with
 desired signature. So in https://github.com/rsalmaso/django/tree/23306 (PR
 https://github.com/django/django/pull/3079) I've added a new function
 `exec_command(name, args=None, options=None)` (code is the same of old
 call_command).

 Needs some docs if can be accepted.

 (My first PR, hope techically is all ok, I'm fighting with git more than I
 though)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23306#comment:1>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.60c6216f1dad29c40ba8472d094639e6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to