def METHOD_NAME(argv):
    if len(argv) > 0 and argv[0] == "-h":
        usage()
    # Load target file
    if len(argv) == 0:
        files = glob.glob(PLATFORM_JSON)
    else:
        files = argv
    all_good = True
    for f in files:
        good = check_file(f)
        if good:
            print("File " + f + " passed validity check")
        else:
            print("File " + f + " failed validity check")
        all_good = all_good and good
    if not all_good:
        sys.exit(-1)