

def results_to_csv(sp):
    if six.PY2:
        parser = sp.add_parser('results-to-csv', help='Create a csv file from a sqlite results file')
    else:
        parser = sp.add_parser('results-to-csv', help='Create a csv file from a sqlite results file', aliases=['to-csv'])
    parser.add_argument('result_file', help='The orignial result file')
    parser.add_argument('output_file', help='The output path for the csv file')
    parser.add_argument('-d', '--delimiter', type=str, help='The delimiter for the csv file', default=';')
    parser.set_defaults(func=to_csv)

dataset/ETHPy150Open TheGhouls/oct/oct/tools/results_to_csv.py results_to_csv/original