def __init__(self, args):
    self.handler_map = self.opt_method_map()
    self.ruleset = []
    self.count = False
    self.process_date = False
    self.process_url = False
    self.process_qstring = False
    self.fields = False
    self.nolazy = False
    self.customOutput = False

    for opt,val in args.__dict__.iteritems():
       """
       For each option passed in, map it to an optionHandler, and run it.
       Option handlers just set self.* attrs, and add Rule objects to self.ruleset
       
       """
       if opt and val:
          if opt in self.handler_map:
            opt_handler = getattr(self, self.handler_map[opt])
            optval = getattr(args, opt)
            opt_handler(optval)
          else:
            "NO HANDLER FOR OPT: ", opt, " VAL: ", val
            setattr(self, opt, val)
dataset/ETHPy150Open bkjones/loghetti/loghetti.py/loghetti.__init__/original