From ebd8f0e4b081a23ca18990cf7837d128d744aa4b Mon Sep 17 00:00:00 2001
From: Millian Poquet <millian.poquet@irit.fr>
Date: Mon, 7 Oct 2024 13:15:40 +0200
Subject: [PATCH] code: update CLI

---
 lflex_celcat_survival/cmd/fetch_celcat.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lflex_celcat_survival/cmd/fetch_celcat.py b/lflex_celcat_survival/cmd/fetch_celcat.py
index 38a806d..6990e07 100755
--- a/lflex_celcat_survival/cmd/fetch_celcat.py
+++ b/lflex_celcat_survival/cmd/fetch_celcat.py
@@ -8,11 +8,10 @@ import sys
 @click.command()
 @click.argument('course_request_file')
 @click.argument('credentials_file')
-@click.option('--json', '--json-raw', default=None, help='If set, raw CELCAT events are written as JSON to this file.')
-@click.option('--csv', default=None, help='If set, filteret events are written as CSV to this file.')
-@click.option('--ics', default=None, help='If set, filtered events are written as ICS to this file.')
-@click.option('--csv-no-description', is_flag=True, default=False, help='If set, CSV outputs will not contain the description column.')
-def main(course_request_file, credentials_file, json, csv, ics, csv_no_description):
+@click.option('--json', default=None, help='If set, raw events fetched from CELCAT as JSON are written to this file.')
+@click.option('--csv', default=None, help='If set, fetched events are written as CSV to this file.')
+@click.option('--ics', default=None, help='If set, fetched events are written as ICS to this file.')
+def main(course_request_file, credentials_file, json, csv, ics):
     logging.basicConfig(level=logging.INFO)
     pd.set_option('display.max_columns', None)
     pd.set_option('display.max_rows', None)
-- 
GitLab