\fB\-y\fR, \fB\-\-year\fR
Display a calendar for the whole year.
.TP
-\fB\-w\fR, \fB\-\-week\fR [\fInumber\fR]
+\fB\-w\fR, \fB\-\-week\fR[\fI=number\fR]
Display week numbers in the calendar (US or ISO-8601).
.TP
\fB\-\-color\fR [\fIwhen\fR]
}
#endif
- while ((ch = getopt_long(argc, argv, "13mjsyw::Vh", longopts, NULL)) != -1)
+ while ((ch = getopt_long(argc, argv, "13mjsywVh", longopts, NULL)) != -1)
switch(ch) {
case '1':
num_months = 1; /* default */
fputs(_(" -m, --monday Monday as first day of week\n"), out);
fputs(_(" -j, --julian output Julian dates\n"), out);
fputs(_(" -y, --year show the whole year\n"), out);
- fputs(_(" -w, --week show US or ISO-8601 week numbers\n"), out);
+ fputs(_(" -w, --week[=<num>] show US or ISO-8601 week numbers\n"), out);
fputs(_(" --color[=<when>] colorize messages (auto, always or never)\n"), out);
fputs(USAGE_SEPARATOR, out);