aboutsummaryrefslogtreecommitdiff
path: root/build/options
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-08 10:56:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-08 10:56:32 +0200
commiteb264e1892c2a1379fa3bcab9aefea219e8e7138 (patch)
tree1031f859076b2d8f117a2948ec1184a5536f9cbc /build/options
parent55471ef43695408bae2237374be4637c302d1c87 (diff)
Rework diagnostics verbosity, add quiet mode/option
Diffstat (limited to 'build/options')
-rw-r--r--build/options12
1 files changed, 10 insertions, 2 deletions
diff --git a/build/options b/build/options
index c0b9930..a2fea2c 100644
--- a/build/options
+++ b/build/options
@@ -208,6 +208,8 @@ namespace cl
class options
{
public:
+ options ();
+
options (int& argc,
char** argv,
bool erase = false,
@@ -240,8 +242,6 @@ class options
::cl::unknown_mode option = ::cl::unknown_mode::fail,
::cl::unknown_mode argument = ::cl::unknown_mode::stop);
- options ();
-
// Option accessors.
//
const bool&
@@ -253,9 +253,15 @@ class options
const bool&
v () const;
+ const bool&
+ q () const;
+
const std::uint16_t&
verbose () const;
+ bool
+ verbose_specified () const;
+
// Print usage information.
//
static void
@@ -277,7 +283,9 @@ class options
bool help_;
bool version_;
bool v_;
+ bool q_;
std::uint16_t verbose_;
+ bool verbose_specified_;
};
#include <build/options.ixx>