code: def _standalone(argv):
      
      varprefix = "GEOCODE"
      per_locale = True
      separator = None
      chunks = -1
      try:
          opts, args = getopt.getopt(argv, "hv:fs:c:", ("help", "var=", "flat", "sep=", "chunks="))
      except getopt.GetoptError:
          prnt(__doc__, file=sys.stderr)
          sys.exit(1)
      for opt, arg in opts:
          if opt in ("-h", "--help"):
              prnt(__doc__, file=sys.stderr)
              sys.exit(1)
          elif opt in ("-v", "--var"):
              varprefix = arg
          elif opt in ("-f", "--flat"):
              per_locale = False
          elif opt in ("-s", "--sep"):
              separator = arg
          elif opt in ("-c", "--chunks"):
              chunks = int(arg)
          else:
              prnt("Unknown option %s" % opt, file=sys.stderr)
              prnt(__doc__, file=sys.stderr)
              sys.exit(1)
      if len(args) != 3:
          prnt(__doc__, file=sys.stderr)
          sys.exit(1)
      if per_locale:
          prefixdata = load_locale_prefixdata(args[0], separator=separator)
      else:
          prefixdata = {}
          load_locale_prefixdata_file(prefixdata, args[0], separator=separator)
      output_prefixdata_code(prefixdata, args[1], args[2], varprefix, per_locale, chunks)
docs: Parse the given input directory and emit generated code.