From 32e7c29ea4f4c3fcc6c31949ecd58d44cd07049a Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sun, 30 Jan 2022 13:37:26 -0500 Subject: [PATCH] on-line help for bold/underine/reverse --- internal/pkg/cli/option_parse.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/pkg/cli/option_parse.go b/internal/pkg/cli/option_parse.go index b9ed6d944..900728369 100644 --- a/internal/pkg/cli/option_parse.go +++ b/internal/pkg/cli/option_parse.go @@ -2452,8 +2452,11 @@ How you can control colorization: If environment-variable settings and command-line flags are both provided, the latter take precedence. -Please do mlr ` + "`--list-color-codes`" + ` to see the available color codes (like 170), -and ` + "`mlr --list-color-names`" + ` to see available names (like ` + "`orchid`" + `). +Colors can be specified using names such as "red" or "orchid": please see +` + "`mlr --list-color-names`" + ` to see available names. They can also be specified using +numbers in the range 0..255, like 170: please see ` + "`mlr --list-color-codes`" + `. +You can also use "bold", "underline", and/or "reverse". Additionally, combinations of +those can be joined with a "-", like "red-bold", "bold-170", "bold-underline", etc. `) }