From 6393d49cd57ff5d66c5535b3f6d6f8c22a7696f9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 5 Aug 2017 16:39:38 +0200 Subject: Add --match-only option --- build2/b-options.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/b-options.cxx') diff --git a/build2/b-options.cxx b/build2/b-options.cxx index 1cb5b2e..a2fa26a 100644 --- a/build2/b-options.cxx +++ b/build2/b-options.cxx @@ -582,6 +582,7 @@ namespace build2 queue_depth_ (4), queue_depth_specified_ (false), serial_stop_ (), + match_only_ (), no_column_ (), no_line_ (), buildfile_ ("buildfile"), @@ -729,6 +730,10 @@ namespace build2 << " default concurrency)." << ::std::endl; os << std::endl + << "\033[1m--match-only\033[0m Match the rules but do not execute the operation. This" << ::std::endl + << " mode is primarily useful for profiling." << ::std::endl; + + os << std::endl << "\033[1m--no-column\033[0m Don't print column numbers in diagnostics." << ::std::endl; os << std::endl @@ -830,6 +835,8 @@ namespace build2 &::build2::cl::thunk< options, bool, &options::serial_stop_ >; _cli_options_map_["-s"] = &::build2::cl::thunk< options, bool, &options::serial_stop_ >; + _cli_options_map_["--match-only"] = + &::build2::cl::thunk< options, bool, &options::match_only_ >; _cli_options_map_["--no-column"] = &::build2::cl::thunk< options, bool, &options::no_column_ >; _cli_options_map_["--no-line"] = -- cgit v1.1