aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/b.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-08 10:49:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-08 10:49:57 +0200
commitf7600f07eecbdac0a4400ca2bc39e3e9f5a53b1b (patch)
tree3bc35a46a68b41dab1148fdbac1d64b818b53960 /libbuild2/b.cli
parente55ab94a6fa652c71cdb119dc1b269c836672930 (diff)
Add --[no]diag-color options (infrastructure only)
Diffstat (limited to 'libbuild2/b.cli')
-rw-r--r--libbuild2/b.cli18
1 files changed, 17 insertions, 1 deletions
diff --git a/libbuild2/b.cli b/libbuild2/b.cli
index 4b5e459..773e29e 100644
--- a/libbuild2/b.cli
+++ b/libbuild2/b.cli
@@ -549,6 +549,22 @@ namespace build2
"Don't display build progress."
}
+ bool --diag-color
+ {
+ "Use color in diagnostics. If printing to a terminal the color is used
+ by default provided the terminal is not dumb. Use \cb{--no-diag-color}
+ to suppress.
+
+ This option affects the diagnostics printed by the build system itself.
+ Some rules may also choose to propagate its value to tools (such as
+ compilers) that they invoke."
+ }
+
+ bool --no-diag-color
+ {
+ "Don't use color in diagnostics."
+ }
+
size_t --jobs|-j
{
"<num>",
@@ -632,7 +648,7 @@ namespace build2
once after each child exits in order to prevent interleaving.
However, this can have side-effects since the child process'
\cb{stderr} is no longer a terminal. Most notably, the use of
- color in diagnostics will be disabled by most programs. On the
+ color in diagnostics may be disabled by some programs. On the
other hand, depending on the platform and programs invoked, the
interleaving diagnostics may not break lines and thus could be
tolerable."