summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-10-02 23:40:04 +0000
committerAnthony Sottile <asottile@umich.edu>2020-10-02 23:40:04 +0000
commit0efbb5dbcb481c020c92066c550961e21178d0d3 (patch)
treeb773e3de91123051ff78cb1d54484bd1794d8257 /src
parentfb91b994ed4adf4f2b4890e7bdba82f57e3a81df (diff)
parentb40af6737ed5feb7d519dc2d0277d8664a802067 (diff)
downloadflake8-0efbb5dbcb481c020c92066c550961e21178d0d3.tar.gz
Merge branch 'no_show_source' into 'master'
Add option to disable show-source for calling tools See merge request pycqa/flake8!441
Diffstat (limited to 'src')
-rw-r--r--src/flake8/main/options.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/flake8/main/options.py b/src/flake8/main/options.py
index 4504634..a0f066f 100644
--- a/src/flake8/main/options.py
+++ b/src/flake8/main/options.py
@@ -282,6 +282,13 @@ def register_default_options(option_manager):
parse_from_config=True,
help="Show the source generate each error or warning.",
)
+ add_option(
+ "--no-show-source",
+ action="store_false",
+ dest="show_source",
+ parse_from_config=False,
+ help="Negate --show-source",
+ )
add_option(
"--statistics",