Add option to disable show-source for calling tools

This commit is contained in:
Anthony Sottile 2020-06-19 10:01:04 -07:00
parent a7be77f761
commit b40af6737e
2 changed files with 32 additions and 0 deletions

View file

@ -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",