summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-04-15 12:38:29 +0000
committerFrederic Culot <calcurse@culot.org>2007-04-15 12:38:29 +0000
commit77ff02f5acfb1bb8ff72f0bb29242441315d68d1 (patch)
tree545766050748e4bb216a6deb8fa5594cfe8b296c
parentd2d286a10a8e8b00da8046d4b44287003dc4437a (diff)
downloadcalcurse-77ff02f5acfb1bb8ff72f0bb29242441315d68d1.zip
help_arg() updated to display help for the --export argument
usage() updated
-rwxr-xr-xsrc/args.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/args.c b/src/args.c
index 74b2377..5ba0ef5 100755
--- a/src/args.c
+++ b/src/args.c
@@ -1,4 +1,4 @@
-/* $calcurse: args.c,v 1.17 2007/04/04 19:40:28 culot Exp $ */
+/* $calcurse: args.c,v 1.18 2007/04/15 12:38:29 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -241,6 +241,11 @@ void help_arg()
" print todo list and exit. If the optional number [num] is given,\n"
"\tthen only todos having a priority equal to [num] will be returned.\n"
"\tnote: priority number must be between 1 (highest) and 9 (lowest).\n"
+ "\n -x, --export\n"
+ " export user data to iCalendar format. Events, appointments and\n"
+ "\ttodos are converted and echoed to stdout.\n"
+ "\tnote: redirect standard output to export data to a file,\n"
+ "\tby issuing a command such as: calcurse --export > my_data.ics\n"
"\nFor more information, type '?' from within Calcurse, "
"or read the manpage.\n"
"Mail bug reports and suggestions to <calcurse@culot.org>.\n");
@@ -529,7 +534,7 @@ void arg_print_date(long date)
void usage()
{
char *arg_usage =
- _("Usage: calcurse [-h | -v] [-an] [-t[num]] [-d date|num] [-c file]\n");
+ _("Usage: calcurse [-h|-v] [-x] [-an] [-t[num]] [-d date|num] [-c file]\n");
fputs(arg_usage, stdout);
}