Skip to content
Snippets Groups Projects
Commit ebd8f0e4 authored by Millian Poquet's avatar Millian Poquet
Browse files

code: update CLI

parent 0b5d1972
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment