def METHOD_NAME(argv, alias, match_at):
    args = ["oath", "access"]
    for flag in ("-c", "--clear-all"):
        if flag in argv:
            argv.remove(flag)
            args.extend(["forget", "--all"])
            break
    else:
        for flag in ("-F", "--forget"):
            if flag in argv:
                argv.remove(flag)
                args.append("forget")
                break
        else:
            args.append("remember")
    argv = argv[:match_at] + args + argv[match_at + len(alias) :]
    return argv