diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-12-08 10:49:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-12-08 10:49:57 +0200 |
commit | f7600f07eecbdac0a4400ca2bc39e3e9f5a53b1b (patch) | |
tree | 3bc35a46a68b41dab1148fdbac1d64b818b53960 /libbuild2/b-cmdline.cxx | |
parent | e55ab94a6fa652c71cdb119dc1b269c836672930 (diff) |
Add --[no]diag-color options (infrastructure only)
Diffstat (limited to 'libbuild2/b-cmdline.cxx')
-rw-r--r-- | libbuild2/b-cmdline.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/b-cmdline.cxx b/libbuild2/b-cmdline.cxx index 2e2deb8..8d78036 100644 --- a/libbuild2/b-cmdline.cxx +++ b/libbuild2/b-cmdline.cxx @@ -396,6 +396,9 @@ namespace build2 if (ops.progress () && ops.no_progress ()) fail << "both --progress and --no-progress specified"; + if (ops.diag_color () && ops.no_diag_color ()) + fail << "both --diag-color and --no-diag-color specified"; + if (ops.mtime_check () && ops.no_mtime_check ()) fail << "both --mtime-check and --no-mtime-check specified"; } @@ -416,6 +419,9 @@ namespace build2 r.progress = (ops.progress () ? optional<bool> (true) : ops.no_progress () ? optional<bool> (false) : nullopt); + r.diag_color = (ops.diag_color () ? optional<bool> (true) : + ops.no_diag_color () ? optional<bool> (false) : nullopt); + r.mtime_check = (ops.mtime_check () ? optional<bool> (true) : ops.no_mtime_check () ? optional<bool> (false) : nullopt); |