code: def main(arguments=None):
      
  
      # setup the command-line util settings
      su = tools(
          arguments=arguments,
          docString=__doc__,
          logLevel="WARNING",
          options_first=False,
          projectName="fundmentals"
      )
      arguments, settings, log, dbConn = su.setup()
  
      # UNPACK REMAINING CL ARGUMENTS USING `EXEC` TO SETUP THE VARIABLE NAMES
      # AUTOMATICALLY
      for arg, val in arguments.iteritems():
          if arg[0] == "-":
              varname = arg.replace("-", "") + "Flag"
          else:
              varname = arg.replace("<", "").replace(">", "")
          if isinstance(val, str) or isinstance(val, unicode):
              exec(varname + " = '%s'" % (val,))
          else:
              exec(varname + " = %s" % (val,))
          if arg == "--dbConn":
              dbConn = val
          log.debug('%s = %s' % (varname, val,))
  
      if successFlag and successFlag.lower() == "none":
          successFlag = None
      if failureFlag and failureFlag.lower() == "none":
          failureFlag = None
  
      directory_script_runner(
          log=log,
          pathToScriptDirectory=pathToDirectory,
          databaseName=databaseName,
          loginPath=loginPath,
          successRule=successFlag,
          failureRule=failureFlag
      )
  
      return
docs: The main function used when ``directory_script_runner.py`` is run as a single script from the cl, or when installed as a cl command