From bbb0ead7e82edd3081ebd9243655b851b0ab4779 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Apr 2018 13:46:57 +0200 Subject: Don't print scheduler statistics at verbosity level 2, add --stat instead --- build2/b-options.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build2/b-options.cxx') diff --git a/build2/b-options.cxx b/build2/b-options.cxx index 3cfb708..df39b2b 100644 --- a/build2/b-options.cxx +++ b/build2/b-options.cxx @@ -597,6 +597,7 @@ namespace build2 quiet_ (), verbose_ (1), verbose_specified_ (false), + stat_ (), jobs_ (), jobs_specified_ (false), max_jobs_ (), @@ -733,6 +734,9 @@ namespace build2 << " 6. Even more detailed information, including state dumps." << ::std::endl; os << std::endl + << "\033[1m--stat\033[0m Display build statistics." << ::std::endl; + + os << std::endl << "\033[1m--jobs\033[0m|\033[1m-j\033[0m \033[4mnum\033[0m Number of active jobs to perform in parallel. This" << ::std::endl << " includes both the number of active threads inside the" << ::std::endl << " build system as well as the number of external commands" << ::std::endl @@ -881,6 +885,8 @@ namespace build2 _cli_options_map_["--verbose"] = &::build2::cl::thunk< options, uint16_t, &options::verbose_, &options::verbose_specified_ >; + _cli_options_map_["--stat"] = + &::build2::cl::thunk< options, bool, &options::stat_ >; _cli_options_map_["--jobs"] = &::build2::cl::thunk< options, size_t, &options::jobs_, &options::jobs_specified_ >; -- cgit v1.1