diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/django-admin.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 408c39055e..f1ebc24ee6 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1657,6 +1657,14 @@ Example usage:: django-admin runserver --no-color +.. django-admin-option:: --force-color + +.. versionadded:: 2.2 + +Forces colorization of the command output if it would otherwise be disabled +as discussed in :ref:`syntax-coloring`. For example, you may want to pipe +colored output to another command. + Extra niceties ============== @@ -1668,7 +1676,7 @@ Syntax coloring The ``django-admin`` / ``manage.py`` commands will use pretty color-coded output if your terminal supports ANSI-colored output. It won't use the color codes if you're piping the command's output to -another program. +another program unless the :option:`--force-color` option is used. Under Windows, the native console doesn't support ANSI escape sequences so by default there is no color output. But you can install the `ANSICON`_ |
