aboutsummaryrefslogtreecommitdiff
path: root/build2/b-options.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-03 10:52:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-03 10:52:54 +0200
commit5f010bb45851d335136369e70f71903c394e9a48 (patch)
tree468791f9f318ea1095be11d814afecd9e3713bdc /build2/b-options.cxx
parent4b4d7a0fd5c21815f4902d6527cb1eaf13b233f7 (diff)
Add -V option as equivalent to --verbose 3
Diffstat (limited to 'build2/b-options.cxx')
-rw-r--r--build2/b-options.cxx7
1 files changed, 7 insertions, 0 deletions
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"] =