summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk.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 /disk-utils/fdisk.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 'disk-utils/fdisk.c')
-rw-r--r--disk-utils/fdisk.c3
1 files changed, 3 insertions, 0 deletions
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 <size> physical and logical sector size\n"), out);
fputs(_(" -c, --compatibility[=<mode>] mode is 'dos' or 'nondos' (default)\n"), out);
fputs(_(" -L, --color[=<when>] 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 <list> output columns\n"), out);
fputs(_(" -t, --type <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"));