From 5d51dc2a7f04d01b33505737fce0f7325c6487b8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 25 Feb 2015 12:37:55 +0100 Subject: colors: cleanup man pages, add hint to usage() cfdisk, fdisk, calm dmesg and hexdump Signed-off-by: Karel Zak Signed-off-by: Karel Zak --- disk-utils/fdisk.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'disk-utils/fdisk.c') diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 815f3f3eb..6c63d06cd 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -645,6 +645,8 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out) fputs(_(" -b, --sector-size physical and logical sector size\n"), out); fputs(_(" -c, --compatibility[=] mode is 'dos' or 'nondos' (default)\n"), out); fputs(_(" -L, --color[=] colorize output (auto, always or never)\n"), out); + fprintf(out, + " %s\n", USAGE_COLORS_DEFAULT); fputs(_(" -l, --list display partitions end exit\n"), out); fputs(_(" -o, --output output columns\n"), out); fputs(_(" -t, --type recognize specified partition table type only\n"), out); @@ -769,6 +771,7 @@ int main(int argc, char **argv) act = ACT_LIST; break; case 'L': + colormode = UL_COLORMODE_AUTO; if (optarg) colormode = colormode_or_err(optarg, _("unsupported color mode")); -- cgit v1.2.3-55-g7522