diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-06 19:46:29 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-06 19:46:29 -0500 |
| commit | 02bcbee245b9b5a0c75345ada0f1d7e70d19b3c0 (patch) | |
| tree | 7e86fdff76034b25d51a19413b85d8aa4f339e60 /docs/source/user | |
| parent | 689562f1e8a03b0930b4beb1d8d5c35b75d08f65 (diff) | |
| download | flake8-02bcbee245b9b5a0c75345ada0f1d7e70d19b3c0.tar.gz | |
Add --stdin-display-name to modify report output
Diffstat (limited to 'docs/source/user')
| -rw-r--r-- | docs/source/user/options.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/source/user/options.rst b/docs/source/user/options.rst index ce30bdf..e336daa 100644 --- a/docs/source/user/options.rst +++ b/docs/source/user/options.rst @@ -192,6 +192,30 @@ another-example*.py +.. option:: --stdin-display-name=<display_name> + + Provide the name to use to report warnings and errors from code on stdin. + + Instead of reporting an error as something like: + + .. code:: + + stdin:82:73 E501 line too long + + You can specify this option to have it report whatever value you want + instead of stdin. + + This defaults to: ``stdin`` + + Command-line example: + + .. prompt:: bash + + cat file.py | flake8 --stdin-display-name=file.py - + + This **can not** be specified in config files. + + .. option:: --format=<format> Select the formatter used to display errors to the user. |
