Show a short message for UsageErrors These are special exceptions that shouldn't show a traceback.
(self, exc)
| 1989 | return etype, value, tb |
| 1990 | |
| 1991 | def show_usage_error(self, exc): |
| 1992 | """Show a short message for UsageErrors |
| 1993 | |
| 1994 | These are special exceptions that shouldn't show a traceback. |
| 1995 | """ |
| 1996 | print("UsageError: %s" % exc, file=sys.stderr) |
| 1997 | |
| 1998 | def get_exception_only(self, exc_tuple=None): |
| 1999 | """ |