docs: def main(arguments=None):
      """
      The main function used when ``yaml_to_database.py`` when installed as a cl tool
      """
  
      # setup the command-line util settings
      su = tools(
          arguments=arguments,
          docString=__doc__,
          logLevel="WARNING",
          options_first=False,
          projectName=False
      )
      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,))
  
      from fundamentals.mysql import sqlite2mysql
      converter = sqlite2mysql(
          log=log,
          settings=settings,
          pathToSqlite=pathToSqliteDB,
          tablePrefix=tablePrefix,
          dbConn=dbConn
      )
      converter.convert_sqlite_to_mysql()
  
      return