diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-05 16:39:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-05 16:39:38 +0200 |
commit | 6393d49cd57ff5d66c5535b3f6d6f8c22a7696f9 (patch) | |
tree | 6655f8771e049caadb2c977df30ecb5a3b2ff779 /build2/b-options.cxx | |
parent | e0a7c21e5ebb341c87546bf2706ff7dda88deb64 (diff) |
Add --match-only option
Diffstat (limited to 'build2/b-options.cxx')
-rw-r--r-- | build2/b-options.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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"] = |