error(message: string) Prints a usage message incorporating the message to stderr and exits. If you override this in a subclass, it should not return -- it should either exit or raise an exception.
(self, message)
| 2358 | _sys.exit(status) |
| 2359 | |
| 2360 | def error(self, message): |
| 2361 | """error(message: string) |
| 2362 | |
| 2363 | Prints a usage message incorporating the message to stderr and |
| 2364 | exits. |
| 2365 | |
| 2366 | If you override this in a subclass, it should not return -- it |
| 2367 | should either exit or raise an exception. |
| 2368 | """ |
| 2369 | self.print_usage(_sys.stderr) |
| 2370 | self.exit(2, _('%s: error: %s\n') % (self.prog, message)) |
no test coverage detected