def get_cmd_line_params(argv):
    """ parse out the option from an array of command line arguments """
    data = argv[-1]
    options = argv[1:-1]
    result = {"dataset":data,
              "columns":[], 
              "simple":False, 
              "domain":False, 
              "extension":False, 
    }
    for o in options:
        parts = o.split("=")
        if parts[0] == "-simple":
            result["simple"]=True
        if parts[0] == "-domain":
            result["domain"]=True
        if parts[0] == "-extension":
            result["extension"]=True
        if parts[0] == "-columns":
            cols = parts[1].split(",")
            result["columns"]=cols

    return result