diff options
author | Karel Zak | 2015-02-25 12:37:55 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-25 12:40:06 +0100 |
commit | 5d51dc2a7f04d01b33505737fce0f7325c6487b8 (patch) | |
tree | bc9947b2d5d6de7d3488a13138b483e6e64de05d /text-utils | |
parent | sfdisk: add missing --color (diff) | |
download | kernel-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 'text-utils')
-rw-r--r-- | text-utils/hexdump.1 | 5 | ||||
-rw-r--r-- | text-utils/hexdump.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/text-utils/hexdump.1 b/text-utils/hexdump.1 index f99276367..d20f63e94 100644 --- a/text-utils/hexdump.1 +++ b/text-utils/hexdump.1 @@ -82,9 +82,10 @@ Empty lines and lines whose first non-blank character is a hash mark (\&#) are ignored. .TP \fB\-L\fR, \fB\-\-color\fR[=\fIwhen\fR] -Accept color units for the output (enabled by default). The optional argument \fIwhen\fP +Accept color units for the output. The optional argument \fIwhen\fP can be \fBauto\fR, \fBnever\fR or \fBalways\fR. If the \fIwhen\fR argument is omitted, -then it defaults to \fBauto\fR. +it defaults to \fBauto\fR. The colors can be disabled, for the current built-in default +see \fB\-\-help\fR output. See also the COLORS section. .TP \fB\-n\fR, \fB\-\-length\fR \fIlength\fR Interpret only diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c index 9ee5cb7c9..cc1fdf1b8 100644 --- a/text-utils/hexdump.c +++ b/text-utils/hexdump.c @@ -165,6 +165,8 @@ void __attribute__((__noreturn__)) usage(FILE *out) fputs(_(" -o, --two-bytes-octal two-byte octal display\n"), out); fputs(_(" -x, --two-bytes-hex two-byte hexadecimal display\n"), out); fputs(_(" -L, --color[=<mode>] interpret color formatting specifiers\n"), out); + fprintf(out, + " %s\n", USAGE_COLORS_DEFAULT); fputs(_(" -e, --format <format> format string to be used for displaying data\n"), out); fputs(_(" -f, --format-file <file> file that contains format strings\n"), out); fputs(_(" -n, --length <length> interpret only length bytes of input\n"), out); |