(self, message)
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.
error(message: string)
error ( message : string )
def error(self, message):
        """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.print_usage(_sys.stderr)
        args = {'prog': self.prog, 'message': message}
        self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
def error ( self , message ) : self . print_usage ( _sys . stderr ) args = { 'prog' : self . prog , 'message' : message } self . exit ( 2 , _ ( '%(prog)s: error: %(message)s\n' ) % args )