aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-12-11 09:36:47 +0000
committerFrederic Culot <calcurse@culot.org>2006-12-11 09:36:47 +0000
commit2f028c2dec054b1b251497629a5b7a00135604a0 (patch)
treeadadf0bc26943787f80002f318cf10833fa62dc2
parentafb9b9dcb6c7f4ec8eb21a8cb1a872cde89fce27 (diff)
downloadcalcurse-2f028c2dec054b1b251497629a5b7a00135604a0.tar.gz
calcurse-2f028c2dec054b1b251497629a5b7a00135604a0.zip
help_arg() updated to take long options into account
-rwxr-xr-xsrc/args.c48
1 files changed, 26 insertions, 22 deletions
diff --git a/src/args.c b/src/args.c
index 22878d3..d987d7b 100755
--- a/src/args.c
+++ b/src/args.c
@@ -1,4 +1,4 @@
-/* $calcurse: args.c,v 1.9 2006/10/17 14:38:21 culot Exp $ */
+/* $calcurse: args.c,v 1.10 2006/12/11 09:36:47 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -202,27 +202,31 @@ void help_arg()
{
char htitle[50];
char *htext =
- _("\nMiscellaneous:\n"
- " -h print this help and exit.\n"
- " -v print calcurse version and exit.\n"
- "\nOptions:\n"
- " -c <file> specify the calendar <file> to use.\n"
- "\nNon-interactive:\n"
- " -a print events and appointments for current day and exit.\n"
- " -d <date|num> print events and appointments for <date> "
- "or <num> upcoming\n\t\tdays and exit. Possible formats are: "
- "'mm/dd/yyyy' or 'n'.\n"
- " -n print next appointment within upcoming 24 hours "
- "and exit.\n"
- " -t[num] print todo list and exit. "
- "If the optional number [num] is \n"
- "\t\tgiven, then only the todos having a priority equal to [num]\n"
- "\t\twill be returned.\n"
- "\t\tnote: the priority number must be between 1 (highest) and\n"
- "\t\t9 (lowest)\n"
- "\nFor more information, type '?' from within Calcurse, "
- "or read the manpage.\n"
- "Mail bug reports and suggestions to <calcurse@culot.org>.\n");
+ _("\nMiscellaneous:\n"
+ " -h, --help\n"
+ " print this help and exit.\n"
+ "\n -v, --version\n"
+ " print calcurse version and exit.\n"
+ "\nFiles:\n"
+ " -c <file>, --calendar <file>\n"
+ " specify the calendar <file> to use.\n"
+ "\nNon-interactive:\n"
+ " -a, --appointment\n"
+ " print events and appointments for current day and exit.\n"
+ "\n -d <date|num>, --day <date|num>\n"
+ " print events and appointments for <date> or <num> upcoming days and"
+ "\n\texit. Possible formats are: 'mm/dd/yyyy' or 'n'.\n"
+ "\n -n, --next\n"
+ " print next appointment within upcoming 24 hours "
+ "and exit. Also given\n\tis the remaining time before this "
+ "next appointment.\n"
+ "\n -t[num], --todo[=num]\n"
+ " 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"
+ "\nFor more information, type '?' from within Calcurse, "
+ "or read the manpage.\n"
+ "Mail bug reports and suggestions to <calcurse@culot.org>.\n");
sprintf(htitle, _("Calcurse %s - text-based organizer\n"), VERSION);
fputs(htitle, stdout);