code: def error(self, message=None):
          
          if self.__parser__:  # pylint: disable-msg=E1101
              self.__parser__.error(message)  # pylint: disable-msg=E1101
          else:
              self.logger.error(message)
              sys.exit(2)
docs: Delegates to `ArgumentParser.error`