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 /sys-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 'sys-utils')
-rw-r--r-- | sys-utils/dmesg.1 | 5 | ||||
-rw-r--r-- | sys-utils/dmesg.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sys-utils/dmesg.1 b/sys-utils/dmesg.1 index a28a4f922..d8209aceb 100644 --- a/sys-utils/dmesg.1 +++ b/sys-utils/dmesg.1 @@ -68,9 +68,10 @@ and \fB\-\-nopager\fR. .IP "\fB\-k\fR, \fB\-\-kernel\fR" Print kernel messages. .IP "\fB\-L\fR, \fB\-\-color\fR[=\fIwhen\fR]" -Colorize important messages (enabled by default). The optional argument \fIwhen\fP +Colorize the output. The optional argument \fIwhen\fP can be \fBauto\fR, \fBnever\fR or \fBalways\fR. If the \fIwhen\fR argument is omitted, -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. .IP "\fB\-l\fR, \fB\-\-level \fIlist\fR" Restrict output to the given (comma-separated) .I list diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index 8360fa311..5a6ee41d9 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -276,6 +276,8 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fputs(_(" -H, --human human readable output\n"), out); fputs(_(" -k, --kernel display kernel messages\n"), out); fputs(_(" -L, --color[=<when>] colorize messages (auto, always or never)\n"), out); + fprintf(out, + " %s\n", USAGE_COLORS_DEFAULT); fputs(_(" -l, --level <list> restrict output to defined levels\n"), out); fputs(_(" -n, --console-level <level> set level of messages printed to console\n"), out); fputs(_(" -P, --nopager do not pipe output into a pager\n"), out); |