default to printing 5 events and added option -a
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user