code: def main(args=None, transform_func=None):
      
      args = get_args(args)
  
      utils.init_log(args.log_level)
  
      try:
          config = _get_config(args)
      except Dump2PolarionException as err:
          logger.fatal(err)
          return 1
  
      return dumper(args, config, transform_func=transform_func)
docs: Main function for cli.