INNER CODE UNIT · Python

_apply_option

oracle/docker-images · OracleDatabase/GDD/containerfiles/scripts/main.py:90

def _apply_option(opt, arg, oenv, oralogger, ocommon):
   if opt == "--optype":
      oenv.add_custom_variable("OP_TYPE", arg)
      return None

   rule = _OPTION_RULES.get(opt)
   if not rule:
      return None

   logfile_type, custom_key, disable_stdout = rule
   if disable_stdout:
      oralogger.stdout_ = None

   file_name = oenv.logfile_name(logfile_type)
   oralogger.filename_ = file_name
   ocommon.log_info_message(_SEPARATOR, file_name)
   oenv.add_custom_variable(custom_key, arg)
   return file_name

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…