#29301: Reorder management command arguments in --help output to prioritize
command-specific arguments
-------------------------------------+-------------------------------------
     Reporter:  David Foster         |                    Owner:  David
         Type:                       |  Foster
  Cleanup/optimization               |                   Status:  new
    Component:  Core (Management     |                  Version:  2.0
  commands)                          |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Jann Haber):

 For the django-nose implementation I was referring here:
 https://github.com/django-nose/django-
 nose/blob/master/django_nose/runner.py#L143
 As far as I have understood the code, it collects the options that django
 has already added and will skip (later in L166) adding options with the
 same name. Nose also has a --version argument. In django 2.0.5, this
 argument is not in the list of arguments of the 'test' management command,
 since skipped by django-nose.

 So option B) would avoid the errors, however the outcome may be different
 (in this case for --version, it then prints the nose version instead of
 (previously) the django version). To me, this sounds like a very minor
 change, that would most likely not have any impact on the vast majority of
 projects. Still, I believe the change should be documented if we go down
 path B) .

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29301#comment:13>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.bef34bbdace61a02b108ed50718aea43%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to