-
I get this every time there's a shell error. I know about it and I don't need to be reminded. How can I silence this help text? |
Beta Was this translation helpful? Give feedback.
Answered by
rpdelaney
Aug 3, 2022
Replies: 2 comments
-
You can add to your $XONSH_SHOW_TRACEBACK = False
# or
$XONSH_TRACEBACK_LOGFILE = '/dev/null' Example: xonsh --no-rc
raise Exception(1)
# xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
# Exception: 1
$XONSH_TRACEBACK_LOGFILE = '/dev/null'
raise Exception(1)
# Exception: 1
$XONSH_SHOW_TRACEBACK = True
raise Exception(1)
#Traceback (most recent call last):
# File "<stdin>", line 1, in <module>
#Exception: 1 Here is the logic in the code: Lines 963 to 972 in cbf23e6 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks to @anki-code If
...when I should have done this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rpdelaney
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to @anki-code
If
XONSH_SHOW_TRACEBACK
is manually set toFalse
then the help text is not printed. My problem was that I was setting it like this:...when I should have done this: