def METHOD_NAME(self, *args, **options):
    # Collect parameters
    self.traceback = bool(options.get("traceback", False))
    self.verbosity = int(options.get('verbosity', 1))
    filename = options.get('filename', '-')
    self.print_msg("Importing WMS options from %s ..." % (
        "standard input" if filename == "-" else "file %r" % filename
    ))
    # load and parse the input data
    try:
        with (stdin if filename == "-" else open(filename, "r")) as fin:
            wms_opts = json.load(fin)
    except IOError as exc:
        raise CommandError(
            "Failed to open the input file '%s'! %s " % (filename, str(exc))
        )
    # insert the range types to DB
    success_count = 0  # success counter - counts finished syncs
    for wms_opt in wms_opts:
        try:
            eoid = wms_opt['coverage_identifier']
            insert_or_update_wms_opt(eoid, wms_opt)
        except Exception as exc:
            if self.traceback:
                self.print_msg(traceback.format_exc())
            self.print_err("Failed to load options of %s! %s" % (
                eoid, "%s: %s" % (type(exc).__name__, str(exc))
            ))
            continue
        else:
            success_count += 1  # increment success counter
    # print the final summary
    count = len(wms_opts)
    error_count = count - success_count
    if success_count > 0:
        self.print_msg(
            "Successfully loaded %d of %s WMS option records." %
            (success_count, count), 1
        )
    else:
        self.print_msg("No WMS option record loaded.")
    if error_count > 0:
        raise CommandError(
            "Failed to load %d WMS option records." % error_count
        )