#!/usr/bin/env python2.7

import re,os
import sys
sys.path.append("../")
import Utilites.command_line as cmd


class log_analyzer:

      def __init__(self):

          parser_obj = {
              "args_list": ["-d"],
              "args_var": [ "--dir_location"],
              "args_action": [ "store" ],
              "args_help": [
                            "Directory Location of log files", \
                  ],
              "args_const" : ["/var/log"],
              "args_required" : ["True"],
              "Description" : "\n log analyzer for analyzing logs \n\n"
          }

          cmd_parser = cmd.command_line(parser_obj)
          parser = cmd_parser.argument_parser()
          self.args,self.unknown = parser.parse_known_args()

          if os.path.exists(self.args.dir_location):
             print("exists")
          else:
             print("Does not exists")



log_analyzer_test = log_analyzer()



