summaryrefslogtreecommitdiff
path: root/src/flake8
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-06-19 10:01:04 -0700
committerAnthony Sottile <asottile@umich.edu>2020-06-19 10:01:04 -0700
commitb40af6737ed5feb7d519dc2d0277d8664a802067 (patch)
treef9bc28e7386fba8ffb9de62c15ac1c25173c9c19 /src/flake8
parenta7be77f761a4c29121d6bb6f61c11902281f9105 (diff)
downloadflake8-b40af6737ed5feb7d519dc2d0277d8664a802067.tar.gz
Add option to disable show-source for calling tools
Diffstat (limited to 'src/flake8')
-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",