summaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-10-25 21:34:43 +0000
committerIan Cordasco <graffatcolmingov@gmail.com>2016-10-25 21:34:43 +0000
commita9e15afbf50b3181af45a64f5736d432731eb40d (patch)
tree6daa2e8e89a2881c7fce439a27255ebff8236137 /docs/source
parent86819c153b4eafba1549ce93bc084ef9100c0ac1 (diff)
parenta71941e9fe047cc0dd586a3449cc22fec6999144 (diff)
downloadflake8-a9e15afbf50b3181af45a64f5736d432731eb40d.tar.gz
Merge branch 'master' into 'master'
Add --tee option to split report output stream. The `--tee` option allows the linter report to be written to stdout, even though it is being redirected to a file with the` --output-file` option. This is useful if I want to store the report in a separate file for later analysis but also be able to print the output on screen (e.g when running in a CI environment). See merge request !90
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/user/invocation.rst1
-rw-r--r--docs/source/user/options.rst20
2 files changed, 21 insertions, 0 deletions
diff --git a/docs/source/user/invocation.rst b/docs/source/user/invocation.rst
index 383e93a..d96d0f9 100644
--- a/docs/source/user/invocation.rst
+++ b/docs/source/user/invocation.rst
@@ -125,6 +125,7 @@ And you should see something like:
available to use. (Default: auto)
--output-file=OUTPUT_FILE
Redirect report to a file.
+ --tee Write to stdout and output-file.
--append-config=APPEND_CONFIG
Provide extra config files to parse in addition to the
files found by Flake8 by default. These files are the
diff --git a/docs/source/user/options.rst b/docs/source/user/options.rst
index c139f69..6252c09 100644
--- a/docs/source/user/options.rst
+++ b/docs/source/user/options.rst
@@ -563,6 +563,26 @@
output_file = output.txt
+.. option:: --tee
+
+ Also print output to stdout if output-file has been configured.
+
+ Command-line example:
+
+ .. prompt:: bash
+
+ flake8 --tee --output-file=output.txt dir/
+
+ This **can** be specified in config files.
+
+ Example config file usage:
+
+ .. code-block:: ini
+
+ output-file = output.txt
+ tee = True
+
+
.. option:: --append-config=<config>
Provide extra config files to parse in after and in addition to the files