From b5d143f529e4ebbeb7a1746312e38da815e2e321 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 May 2023 13:21:55 +0200 Subject: Add --load-only option in addition to --match-only This option has the effect of loading all the subdirectory buildfiles that are not explicitly included. --- libbuild2/b-cmdline.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbuild2/b-cmdline.cxx') diff --git a/libbuild2/b-cmdline.cxx b/libbuild2/b-cmdline.cxx index b7d0726..77ad087 100644 --- a/libbuild2/b-cmdline.cxx +++ b/libbuild2/b-cmdline.cxx @@ -418,6 +418,9 @@ namespace build2 if (ops.mtime_check () && ops.no_mtime_check ()) fail << "both --mtime-check and --no-mtime-check specified"; + + if (ops.match_only () && ops.load_only ()) + fail << "both --match-only and --load-only specified"; } catch (const cli::exception& e) { -- cgit v1.1