mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
add --color option
This commit is contained in:
parent
05cae7e046
commit
848003cc05
10 changed files with 181 additions and 2 deletions
|
|
@ -40,6 +40,8 @@ Index of Options
|
|||
|
||||
- :option:`flake8 --quiet`
|
||||
|
||||
- :option:`flake8 --color`
|
||||
|
||||
- :option:`flake8 --count`
|
||||
|
||||
- :option:`flake8 --diff`
|
||||
|
|
@ -181,6 +183,35 @@ Options and their Descriptions
|
|||
|
||||
quiet = 1
|
||||
|
||||
.. option:: --color
|
||||
|
||||
:ref:`Go back to index <top>`
|
||||
|
||||
Whether to use color in output. Defaults to ``auto``.
|
||||
|
||||
Possible options are ``auto``, ``always``, and ``never``.
|
||||
|
||||
This **can** be specified in config files.
|
||||
|
||||
When color is enabled, the following substitutions are enabled:
|
||||
|
||||
- ``%(bold)s``
|
||||
- ``%(black)s``
|
||||
- ``%(red)s``
|
||||
- ``%(green)s``
|
||||
- ``%(yellow)s``
|
||||
- ``%(blue)s``
|
||||
- ``%(magenta)s``
|
||||
- ``%(cyan)s``
|
||||
- ``%(white)s``
|
||||
- ``%(reset)s``
|
||||
|
||||
Example config file usage:
|
||||
|
||||
.. code-block:: ini
|
||||
|
||||
color = never
|
||||
|
||||
|
||||
.. option:: --count
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue