diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-02 11:53:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-02 11:53:01 +0200 |
commit | 626348009e74d2ec6e9f500d27f60728b4fc81df (patch) | |
tree | 9d56bf2d091abb2a7e99876d1184895e8b6fb4bb /build/options.cli | |
parent | e0de4f26fcf598b4f6beaa2847c4d43a4c761f5b (diff) |
Add command line option to set verbosity level
-v sets it to 1 (shows actual command lines)
--verbose sets it to any value in the 0-5 range
Diffstat (limited to 'build/options.cli')
-rw-r--r-- | build/options.cli | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build/options.cli b/build/options.cli new file mode 100644 index 0000000..af28992 --- /dev/null +++ b/build/options.cli @@ -0,0 +1,24 @@ +// file : build/options.cli +// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +include <cstdint>; + +class options +{ + bool --help {"Print usage information and exit."}; + bool --version {"Print version and exit."}; + + bool -v + { + "Print actual commands being executed. This is equivalent to + \cb{--verbose 1}." + }; + + std::uint16_t --verbose = 0 + { + "<level>", + "Set the diagnostics verbosity to a level between 0 (disabled) and + 5 (lots of information). @@ Need to document further." + }; +}; |