Skip to content

Commit 5da34dc

Browse files
committed
more robust fix for #233
1 parent be6a1de commit 5da34dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/django_typer/management/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def _common_options( # pyright: ignore[reportRedeclaration]
257257
pythonpath: PythonPath = None,
258258
traceback: Traceback = False,
259259
show_locals: ShowLocals = False,
260-
hide_locals: HideLocals = True,
260+
hide_locals: HideLocals = False,
261261
no_color: NoColor = False,
262262
force_color: ForceColor = False,
263263
skip_checks: SkipChecks = False,

src/django_typer/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def set_force_color(context, _, value):
4747
return value
4848

4949

50-
def show_locals(context, param, value):
50+
def show_locals(context, param, _):
5151
from click.core import ParameterSource
5252

5353
if context.get_parameter_source(param.name) is not ParameterSource.DEFAULT:
@@ -57,7 +57,7 @@ def show_locals(context, param, value):
5757
install_traceback(
5858
{
5959
**traceback_config(),
60-
"show_locals": not value if param.name == "hide_locals" else value,
60+
"show_locals": param.name == "show_locals",
6161
}
6262
)
6363

0 commit comments

Comments
 (0)