diff options
-rw-r--r-- | src/opt.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -16,7 +16,7 @@ static struct simple_opt options[] = { { SIMPLE_OPT_STRING, 'c', "calendar", true, "path to calendar", "<file>" }, { SIMPLE_OPT_STRING, 'e', "editor", true, - "text editor for editing calendars", "<file>" }, + "text editor for editing calendars", "<cmd>" }, { SIMPLE_OPT_END } }; @@ -38,6 +38,15 @@ void opt_parse(int argc, char **argv) "[-c CALENDAR_FILE] [-m OUTPUT_MODE]", "every is a flexible, console-based event calendar", options); + + printf( + "\n" + "Commands\n" + " c (default) print upcoming events in interactive console mode\n" + " s print upcoming events in a format appropriate for scripting\n" + " e open calendar with text editor\n" + ); + exit(EXIT_SUCCESS); } |