aboutsummaryrefslogtreecommitdiff
path: root/build/options.cli
blob: 9bd1dcd55876e21c5c2c4cf618d17d853f82b09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// file      : build/options.cli
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// 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 2}."
  };

  bool -q
  {
    "Run quietly, only printing error messages. This is equivalent
     to \cb{--verbose 0}."
  };

  std::uint16_t --verbose = 1
  {
    "<level>",
    "Set the diagnostics verbosity to <level> between 0 (disabled) and
     6 (lots of information). The default is 1. @@ Need to document
     further."
  };
};