def main(argv):

    colormapFile = ""

    try:
        opts, args = getopt.getopt(argv,"hi:c:",["colormap="])
    except getopt.GetoptError:
        print("Usage: colorMaptoHTML.py -c <colormap>")
        print("\nOptions:")
        print("  -h, --help             show this help message and exit")
        print("  -c COLORMAP_FILE, --colormap COLORMAP_FILE")
        print("							Path to colormap file to be converted")
        sys.exit(2)
    for opt, arg in opts:
        if opt == '-h':
            print("Usage: colorMaptoHTML.py -c <colormap>")
            print("\nOptions:")
            print("  -h, --help             show this help message and exit")
            print("  -c COLORMAP_FILE, --colormap COLORMAP_FILE")
            print("							Path to colormap file to be converted")
            sys.exit()
        elif opt in ("-c", "--colormap"):
            colormapFile = arg

    parseColorMaps(colormapFile, colormapFile)
    generateHTML()
dataset/ETHPy150Open nasa-gibs/onearth/src/scripts/colorMaptoHTML.py/main/original