diff options
author | Tommi Kyntola | 2013-10-07 19:57:28 +0200 |
---|---|---|
committer | Karel Zak | 2013-10-22 10:39:08 +0200 |
commit | af7c483e62128a59852da2603a94db4b7738f1b6 (patch) | |
tree | 61acb2794910dc57238d5a7c559c0c72c3124ec4 /misc-utils/cal.c | |
parent | cal: added argument option for -w|--week to display that week (diff) | |
download | kernel-qcow2-util-linux-af7c483e62128a59852da2603a94db4b7738f1b6.tar.gz kernel-qcow2-util-linux-af7c483e62128a59852da2603a94db4b7738f1b6.tar.xz kernel-qcow2-util-linux-af7c483e62128a59852da2603a94db4b7738f1b6.zip |
cal: remove optional from short arg -w
The long option --week still has the optional argument as --week=<wnum>
This was suggested on the mailing list by Padraig Brady and I do agree with that.
Actually, the whole idea of --week=<wnum> came from him.
Signed-off-by: Tommi Kyntola <kynde@iki.fi>
Diffstat (limited to 'misc-utils/cal.c')
-rw-r--r-- | misc-utils/cal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c index c4db0b13a..c09b2f6ef 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -339,7 +339,7 @@ int main(int argc, char **argv) } #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 */ @@ -983,7 +983,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) 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); |