From f7600f07eecbdac0a4400ca2bc39e3e9f5a53b1b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 Dec 2022 10:49:57 +0200 Subject: Add --[no]diag-color options (infrastructure only) --- libbuild2/b-cmdline.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbuild2/b-cmdline.cxx') 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 (true) : ops.no_progress () ? optional (false) : nullopt); + r.diag_color = (ops.diag_color () ? optional (true) : + ops.no_diag_color () ? optional (false) : nullopt); + r.mtime_check = (ops.mtime_check () ? optional (true) : ops.no_mtime_check () ? optional (false) : nullopt); -- cgit v1.1