#17222: Let `manage.py`  learn  --colour/--color option to control if colouring
output is wanted by user
--------------------------------------------+--------------------
     Reporter:  rabio                       |      Owner:  nobody
         Type:  New feature                 |     Status:  new
    Component:  Core (Management commands)  |    Version:  SVN
     Severity:  Normal                      |   Keywords:
 Triage Stage:  Unreviewed                  |  Has patch:  0
Easy pickings:  0                           |      UI/UX:  0
--------------------------------------------+--------------------
 It will be nice if `manage.py` could understand --colour/--color options
 like grep do for example (i.e always / never / guess).

 === Rationale ===

 1. It may be still reasonable to force `manage.py` to output colour escape
 sequences even when output is not send to a `tty` (now escape sequences
 for colour are supresed in this case). For example, this may happen when
 its output is redirected to `less -R` or `tail`.

 2. Even when switching colours off may be achieved now by setting
 DJANGO_COLORS=nocolor environment variable (or to any palette name not
 known to `django.utils.termcolors`), it is not obvious way to achieve this
 and it is not always as easy to set / change environment variable as it is
 to run command with additional option.

 3. See also #17221 for additional rationale as this enhancement may
 provide temporary workaround for it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17222>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to