aboutsummaryrefslogtreecommitdiff
path: root/loader/options.cli
blob: e46a54823b1353e4213ca1e50c4c3d1f4bbf822d (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// file      : loader/options.cli
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

include <brep/types>;

namespace brep
{
  class options
  {
    bool --help {"Print usage information and exit."}
    bool --version {"Print version and exit."}

    string --db-user|-u
    {
      "<user>",
      "Database user name. If not specified, then operating system (login)
       name is used."
    }

    string --db-password
    {
      "<pass>",
      "Database password. If not specified, then login without password is
       expected to work."
    }

    string --db-name|-n = "brep"
    {
      "<name>",
      "Database name. If not specified, then '\cb{brep}' is used by default."
    }

    string --db-host|-h
    {
      "<host>",
      "Database host name, address, or socket. If not specified, then connect
       to \cb{localhost} using the operating system-default mechanism
       (Unix-domain socket, etc)."
    }

    uint16_t --db-port|-p = 0
    {
      "<port>",
      "Database port number. If not specified, the default port is used."
    }
  };
}