How can I use Panel.fit
(from rich) instead of the Panel
default in both the help message and Typer App argument errors?
#607
Replies: 4 comments 1 reply
-
What a good suggestion! I agree that the error message looks much better with |
Beta Was this translation helpful? Give feedback.
-
I'd also like this very much, see #680 Setting See: However, setting |
Beta Was this translation helpful? Give feedback.
-
I figured it out. 😁 The reason Now "all" we need to do is make a PR to expose it through the Typer API and make it configurable for the end user. 😅 |
Beta Was this translation helpful? Give feedback.
-
First Check
Commit to Help
Example Code
Description
I want to use
Panel.fit
instead of thePanel
default on help messages and argument error messages.Default behaviour:
Example of the behaviour I want to achieve:
P.D: To obtain the second image i used the following code:
However, this only affects error panels and the help message remains the same. How can I do this for both types of messages?
Operating System
Linux
Operating System Details
No response
Typer Version
0.9.0
Python Version
Python 3.11.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions