diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,10 +1,10 @@ #include "opt.h" #include "err.h" +#include "calendar.h" +#include "print.h" #include "../reqs/simple-xdg-bdirs/simple-xdg-bdirs.h" -#include "calendar.h" - #include <stdbool.h> #include <unistd.h> @@ -115,6 +115,12 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); /* output commands */ + if (cmd == OPT_COMMAND_CONSOLE) + print_console(&cal); + else + print_script(&cal); + + calendar_wipe(&cal); return 0; } |