diff options
author | Pádraig Brady | 2013-10-09 20:44:12 +0200 |
---|---|---|
committer | Karel Zak | 2013-10-11 10:44:21 +0200 |
commit | 233ad1fa9b5f9aafaa5a678c6591cee16b296881 (patch) | |
tree | 1c2e67b5ad3a8f4eefb287879eb916741be0022f /misc-utils/cal.c | |
parent | fdisk: add -t <type> to enable only specified type (diff) | |
download | kernel-qcow2-util-linux-233ad1fa9b5f9aafaa5a678c6591cee16b296881.tar.gz kernel-qcow2-util-linux-233ad1fa9b5f9aafaa5a678c6591cee16b296881.tar.xz kernel-qcow2-util-linux-233ad1fa9b5f9aafaa5a678c6591cee16b296881.zip |
cal: improve the help text and man page
* misc-utils/cal.c: Add a little doc string, and mention that the
current month is implicit if not specified. Also remove mention
of "current" from two option descriptions as a specific date may
have been specified.
* misc-utils/cal.1: Likewise.
[kzak@redhat.com: - use fputs and USAGE_SEPARATOR]
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/cal.c')
-rw-r--r-- | misc-utils/cal.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c index 76d62521b..2360e3da7 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -805,13 +805,17 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) fputs(USAGE_HEADER, out); fprintf(out, _(" %s [options] [[[day] month] year]\n"), program_invocation_short_name); + fputs(USAGE_SEPARATOR, out); + fputs(_("Display a calendar, or some part of it.\n"), out); + fputs(_("Without any arguments, display the current month.\n"), out); + fputs(USAGE_OPTIONS, out); - fputs(_(" -1, --one show only current month (default)\n"), out); - fputs(_(" -3, --three show previous, current and next month\n"), out); + fputs(_(" -1, --one show only a single month (default)\n"), out); + fputs(_(" -3, --three show three months spanning the date\n"), out); fputs(_(" -s, --sunday Sunday as first day of week\n"), out); fputs(_(" -m, --monday Monday as first day of week\n"), out); fputs(_(" -j, --julian output Julian dates\n"), out); - fputs(_(" -y, --year show whole current year\n"), out); + fputs(_(" -y, --year show the whole year\n"), out); fputs(_(" --color[=<when>] colorize messages (auto, always or never)\n"), out); fputs(USAGE_SEPARATOR, out); |