From 5f010bb45851d335136369e70f71903c394e9a48 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 3 Aug 2016 10:52:54 +0200 Subject: Add -V option as equivalent to --verbose 3 --- 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 cf15200..9b169d7 100644 --- a/build2/b-options.cxx +++ b/build2/b-options.cxx @@ -570,6 +570,7 @@ namespace build2 options:: options () : v_ (), + V_ (), q_ (), verbose_ (1), verbose_specified_ (false), @@ -661,6 +662,10 @@ namespace build2 << " to \033[1m--verbose 2\033[0m." << ::std::endl; os << std::endl + << "\033[1m-V\033[0m Print all underlying commands being executed. This is" << ::std::endl + << " equivalent to \033[1m--verbose 3\033[0m." << ::std::endl; + + os << std::endl << "\033[1m-q\033[0m Run quietly, only printing error messages. This is" << ::std::endl << " equivalent to \033[1m--verbose 0\033[0m." << ::std::endl; @@ -739,6 +744,8 @@ namespace build2 { _cli_options_map_["-v"] = &::build2::cl::thunk< options, bool, &options::v_ >; + _cli_options_map_["-V"] = + &::build2::cl::thunk< options, bool, &options::V_ >; _cli_options_map_["-q"] = &::build2::cl::thunk< options, bool, &options::q_ >; _cli_options_map_["--verbose"] = -- cgit v1.1