aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-04 19:38:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-04 19:38:33 +0200
commit3469e1d984c6ae000b59c471e6ef84c4b43497f2 (patch)
tree48e3aae7b84dd595af8557bdd0cb247a0741187f
parentf05b71bd468bac9358d9fae169b4ca147f0e97fb (diff)
Add -V which is equivalent to --verbose 3
-rw-r--r--bpkg/bpkg.cxx4
-rw-r--r--bpkg/common.cli10
2 files changed, 11 insertions, 3 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx
index 8a270fd..db95cb5 100644
--- a/bpkg/bpkg.cxx
+++ b/bpkg/bpkg.cxx
@@ -91,7 +91,9 @@ parse (const common_options& co, cli::scanner& scan, strings& args)
// Diagnostics verbosity.
//
- verb = o.verbose_specified () ? o.verbose () : o.v () ? 2 : o.q () ? 0 : 1;
+ verb = o.verbose_specified ()
+ ? o.verbose ()
+ : o.V () ? 3 : o.v () ? 2 : o.q () ? 0 : 1;
return o;
}
diff --git a/bpkg/common.cli b/bpkg/common.cli
index 90c150b..e71140a 100644
--- a/bpkg/common.cli
+++ b/bpkg/common.cli
@@ -42,8 +42,14 @@ namespace bpkg
bool -v
{
- "Print underlying commands being executed. This is equivalent to
- \cb{--verbose 2}."
+ "Print essential underlying commands being executed. This is equivalent
+ to \cb{--verbose 2}."
+ }
+
+ bool -V
+ {
+ "Print all underlying commands being executed. This is equivalent to
+ \cb{--verbose 3}."
}
bool -q