From 626348009e74d2ec6e9f500d27f60728b4fc81df Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Apr 2015 11:53:01 +0200 Subject: 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 --- build/options.cli | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 build/options.cli (limited to 'build/options.cli') 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 ; + +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 + { + "", + "Set the diagnostics verbosity to a level between 0 (disabled) and + 5 (lots of information). @@ Need to document further." + }; +}; -- cgit v1.1