Show a short message for UsageErrors These are special exceptions that shouldn't show a traceback.
(self, exc)
| 2146 | return etype, value, tb |
| 2147 | |
| 2148 | def show_usage_error(self, exc): |
| 2149 | """Show a short message for UsageErrors |
| 2150 | |
| 2151 | These are special exceptions that shouldn't show a traceback. |
| 2152 | """ |
| 2153 | print("UsageError: %s" % exc, file=sys.stderr) |
| 2154 | |
| 2155 | def get_exception_only(self, exc_tuple=None): |
| 2156 | """ |