[Feature] Add env variable to enable rich output when it is off by default #612
Unanswered
corneliusroemer
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Using
app = typer.Typer(pretty_exceptions_enable=False)
I can disable rich exceptions.However, sometimes it would be nice to have them switched on. I like that you can switch off exceptions using the env variable
_TYPER_STANDARD_TRACEBACK=1
. It would be great if there was an equivalent_TPER_RICH_TRACEBACK=1
that would turn rich tracebacks on even if the script is configured withpretty_exceptions_enable=False
Beta Was this translation helpful? Give feedback.
All reactions