From 1511d2d85e1a2142461af1b4cce4e47350fec7d0 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 5 Aug 2017 20:50:30 +0300 Subject: Print progress to terminal by default --- build2/b-options.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'build2/b-options.cxx') 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"] = -- cgit v1.1