summaryrefslogtreecommitdiff
path: root/src/flake8
diff options
context:
space:
mode:
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",