summaryrefslogtreecommitdiffstats
path: root/misc-utils/cal.c
diff options
context:
space:
mode:
authorKarel Zak2015-02-25 12:37:55 +0100
committerKarel Zak2015-02-25 12:40:06 +0100
commit5d51dc2a7f04d01b33505737fce0f7325c6487b8 (patch)
treebc9947b2d5d6de7d3488a13138b483e6e64de05d /misc-utils/cal.c
parentsfdisk: add missing --color (diff)
downloadkernel-qcow2-util-linux-5d51dc2a7f04d01b33505737fce0f7325c6487b8.tar.gz
kernel-qcow2-util-linux-5d51dc2a7f04d01b33505737fce0f7325c6487b8.tar.xz
kernel-qcow2-util-linux-5d51dc2a7f04d01b33505737fce0f7325c6487b8.zip
colors: cleanup man pages, add hint to usage()
cfdisk, fdisk, calm dmesg and hexdump Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/cal.c')
-rw-r--r--misc-utils/cal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c
index 2311d0188..d6d4a0f25 100644
--- a/misc-utils/cal.c
+++ b/misc-utils/cal.c
@@ -369,6 +369,7 @@ int main(int argc, char **argv)
ctl.weektype = WEEK_NUM_US; /* default per weekstart */
break;
case OPT_COLOR:
+ ctl.colormode = UL_COLORMODE_AUTO;
if (optarg)
ctl.colormode = colormode_or_err(optarg,
_("unsupported color mode"));
@@ -937,6 +938,8 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
fputs(_(" -y, --year show the whole year\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);
+ fprintf(out,
+ " %s\n", USAGE_COLORS_DEFAULT);
fputs(USAGE_SEPARATOR, out);
fputs(USAGE_HELP, out);