help_arg() updated to take long options into account
This commit is contained in:
parent
afb9b9dcb6
commit
2f028c2dec
48
src/args.c
48
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
|
* Calcurse - text-based organizer
|
||||||
@ -202,27 +202,31 @@ void help_arg()
|
|||||||
{
|
{
|
||||||
char htitle[50];
|
char htitle[50];
|
||||||
char *htext =
|
char *htext =
|
||||||
_("\nMiscellaneous:\n"
|
_("\nMiscellaneous:\n"
|
||||||
" -h print this help and exit.\n"
|
" -h, --help\n"
|
||||||
" -v print calcurse version and exit.\n"
|
" print this help and exit.\n"
|
||||||
"\nOptions:\n"
|
"\n -v, --version\n"
|
||||||
" -c <file> specify the calendar <file> to use.\n"
|
" print calcurse version and exit.\n"
|
||||||
"\nNon-interactive:\n"
|
"\nFiles:\n"
|
||||||
" -a print events and appointments for current day and exit.\n"
|
" -c <file>, --calendar <file>\n"
|
||||||
" -d <date|num> print events and appointments for <date> "
|
" specify the calendar <file> to use.\n"
|
||||||
"or <num> upcoming\n\t\tdays and exit. Possible formats are: "
|
"\nNon-interactive:\n"
|
||||||
"'mm/dd/yyyy' or 'n'.\n"
|
" -a, --appointment\n"
|
||||||
" -n print next appointment within upcoming 24 hours "
|
" print events and appointments for current day and exit.\n"
|
||||||
"and exit.\n"
|
"\n -d <date|num>, --day <date|num>\n"
|
||||||
" -t[num] print todo list and exit. "
|
" print events and appointments for <date> or <num> upcoming days and"
|
||||||
"If the optional number [num] is \n"
|
"\n\texit. Possible formats are: 'mm/dd/yyyy' or 'n'.\n"
|
||||||
"\t\tgiven, then only the todos having a priority equal to [num]\n"
|
"\n -n, --next\n"
|
||||||
"\t\twill be returned.\n"
|
" print next appointment within upcoming 24 hours "
|
||||||
"\t\tnote: the priority number must be between 1 (highest) and\n"
|
"and exit. Also given\n\tis the remaining time before this "
|
||||||
"\t\t9 (lowest)\n"
|
"next appointment.\n"
|
||||||
"\nFor more information, type '?' from within Calcurse, "
|
"\n -t[num], --todo[=num]\n"
|
||||||
"or read the manpage.\n"
|
" print todo list and exit. If the optional number [num] is given,\n"
|
||||||
"Mail bug reports and suggestions to <calcurse@culot.org>.\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);
|
sprintf(htitle, _("Calcurse %s - text-based organizer\n"), VERSION);
|
||||||
fputs(htitle, stdout);
|
fputs(htitle, stdout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user