Skip to content

Commit e05d478

Browse files
committed
Make --show-traceback the default and add --no-show-traceback
Fixes: #21360 Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
1 parent 3a0207b commit e05d478

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

mypy/main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,8 +1118,11 @@ def add_invertible_flag(
11181118
title="Advanced options", description="Debug and customize mypy internals."
11191119
)
11201120
internals_group.add_argument("--pdb", action="store_true", help="Invoke pdb on fatal error")
1121-
internals_group.add_argument(
1122-
"--show-traceback", "--tb", action="store_true", help="Show traceback on fatal error"
1121+
add_invertible_flag(
1122+
"--show-traceback",
1123+
default=True,
1124+
help="Show traceback on fatal error",
1125+
group=internals_group,
11231126
)
11241127
internals_group.add_argument(
11251128
"--raise-exceptions", action="store_true", help="Raise exception on fatal error"

0 commit comments

Comments
 (0)