default to printing 5 events and added option -a

This commit is contained in:
2023-09-17 10:27:52 +02:00
parent 0773d4f561
commit e8ed8b0319
5 changed files with 30 additions and 16 deletions

View File

@ -14,7 +14,9 @@
int main(int argc, char **argv) {
char *ics_path = "";
get_cli_args(argc, argv, &ics_path);
int show_all_events = 0;
get_cli_args(argc, argv, &ics_path, &show_all_events);
char my_event[8192] = "";
@ -42,7 +44,7 @@ int main(int argc, char **argv) {
memset(my_event, '\0', sizeof(my_event));
}
print_upcoming(head, current_date);
print_upcoming(head, current_date, show_all_events);
free_list(head);