diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-08-05 20:50:30 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-08-06 13:19:00 +0300 |
commit | 1511d2d85e1a2142461af1b4cce4e47350fec7d0 (patch) | |
tree | 72ebd1fdd89b76bdd8108270913485633934da51 /build2/b-options.cxx | |
parent | 4ea8b31ec37dc1c11f1c80e558361951253f1c58 (diff) |
Print progress to terminal by default
Diffstat (limited to 'build2/b-options.cxx')
-rw-r--r-- | build2/b-options.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/build2/b-options.cxx b/build2/b-options.cxx index a2fa26a..5041cf3 100644 --- a/build2/b-options.cxx +++ b/build2/b-options.cxx @@ -572,6 +572,7 @@ namespace build2 : v_ (), V_ (), progress_ (), + no_progress_ (), quiet_ (), verbose_ (1), verbose_specified_ (false), @@ -677,9 +678,12 @@ namespace build2 << " equivalent to \033[1m--verbose 3\033[0m." << ::std::endl; os << std::endl - << "\033[1m--progress\033[0m|\033[1m-p\033[0m Display build progress. Only usable when printing to a" << ::std::endl - << " terminal but can be combined with various verbosity" << ::std::endl - << " levels." << ::std::endl; + << "\033[1m--progress\033[0m|\033[1m-p\033[0m Display build progress. If printing to a terminal the" << ::std::endl + << " progress is displayed by default for low verbosity levels." << ::std::endl + << " Use \033[1m--no-progress\033[0m to suppress." << ::std::endl; + + os << std::endl + << "\033[1m--no-progress\033[0m Don't display build progress." << ::std::endl; os << std::endl << "\033[1m--quiet\033[0m|\033[1m-q\033[0m Run quietly, only printing error messages. This is" << ::std::endl @@ -806,6 +810,8 @@ namespace build2 &::build2::cl::thunk< options, bool, &options::progress_ >; _cli_options_map_["-p"] = &::build2::cl::thunk< options, bool, &options::progress_ >; + _cli_options_map_["--no-progress"] = + &::build2::cl::thunk< options, bool, &options::no_progress_ >; _cli_options_map_["--quiet"] = &::build2::cl::thunk< options, bool, &options::quiet_ >; _cli_options_map_["-q"] = |