#33657: Custom command help formatting destroyed
-------------------------------------+-------------------------------------
     Reporter:  James Pic            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Management     |                  Version:  4.0
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

 This seems no fault of Django but is rather
 [https://docs.python.org/3/library/argparse.html#formatter-class the
 default behavior] of `ArgumentParser` ("By default, `ArgumentParser`
 objects line-wrap the description and epilog texts in command-line help
 messages"). This can be changed by using a custom
 
[https://github.com/django/django/blob/ed0a2c3238aa0b9c0d01c436d5bcd70930d696b0/django/core/management/base.py#L292
 formatter_class], though Django already specifies a custom one
 
([https://github.com/django/django/blob/ed0a2c3238aa0b9c0d01c436d5bcd70930d696b0/django/core/management/base.py#L105-L131
 DjangoHelpFormatter]).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33657#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018052874bbf-9605f9e5-5bf2-46c7-8cbe-1341a97c385a-000000%40eu-central-1.amazonses.com.

Reply via email to