text: import argparse
  
  from aoe2de_rms_gen_obj_parser.genobj import (
      GeneratingObjectsParser,
  )
  
  if __name__ == '__main__':
      # Can be run from command line with two mandatory arguments `gen_obj_path` and `rms_file_path`
      arg_p = argparse.ArgumentParser(description="Parser for Age of Empire 2: Definitive Edition GeneratingObjects "
                                                  "accordingly to the RandomMapScript file provided for the constants",
                                      epilog="")
  
      arg_p.add_argument("gen_obj_path", metavar="\"Path/to/GeneratingObjects.inc\"",
                         help="Path of the GeneratingObjects.inc file from AoE2DE")
      arg_p.add_argument("rms_file_path", metavar="\"Path/to/.rms file\"",
                         help="List of path of the RMS files to parse")
      # Always optional args
      arg_p.add_argument("-r", "--map_resources", metavar="One of the possible Map Resources",
                         default="OTHER_RESOURCES",
                         help="Available attributes are: INFINITE_RESOURCES and OTHER_RESOURCES")
      arg_p.add_argument("-s", "--map_size", metavar="One of the possible Map Sizes",
                         default="TINY_MAP",
                         help="Available attributes are: TINY_MAP, SMALL_MAP, MEDIUM_MAP, LARGE_MAP, "
                              "HUGE_MAP, GIGANTIC_MAP, LUDIKRIS_MAP")
      arg_p.add_argument("-t", "--game_type", metavar="One of the possible Game Types",
                         default="OTHER_GAME",
                         help="Available attributes are: KING_OT_HILL, EMPIRE_WARS, BATTLE_ROYALE, REGICIDE, DEATH_MATCH "
                              "and OTHER_GAME")
      arg_p.add_argument("-p", "--preface", action="store_true",
                         help="Switch to preface the output with a comment line, containing the map size, "
                              "resources and game type")
      args_dict = arg_p.parse_args()
  
      #
      gen_obj_parser = GeneratingObjectsParser(args_dict.gen_obj_path, args_dict.rms_file_path,
                                               args_dict.map_size,
                                               args_dict.map_resources,
                                               args_dict.game_type,
                                               args_dict.preface)
      gen_obj_parser.run_parsers()
      print(gen_obj_parser.get_result())
  