summaryrefslogtreecommitdiff
path: root/m4/lls/include/color.m4
blob: 3828061409bfb8e2b0dd79728931eb9f03a64ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[option color]
	short_opt = C
	summary = activate colored log messages
	typestr = when
	arg_info = required_arg
	arg_type = string
	values = {COLOR_YES = "yes", COLOR_NO = "no", COLOR_AUTO = "auto"}
	default_val = auto
	[help]
		In automatic mode, color mode is activated if --logfile is not given and
		stderr (i.e., fd 2) refers to a terminal.
	[/help]
[option log-color]
	summary = select a color for one type of log message
	typestr = color_spec
	arg_info = required_arg
	arg_type = string
	flag multiple
	[help]
		The format of <color_spec> is [<fg> [<bg>]] [<attr>].

		Valid colors for <fg> and <bg> are "normal", "black", "red", "green",
		"yellow", "blue", "magenta", "cyan", and "white".

		The <attr> value must be one of "bold", "dim", "ul", "blink",
		"reverse".

	Examples:

		--log-color "debug:green"
		--log-color "info:yellow bold"
		--log-color "notice:white red bold"
	[/help]