aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent.cli
blob: 761580c62e4e6cf0eb99b8035b6c30b0ef1aba71 (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
49
50
51
52
53
54
// file      : bbot/agent.cli
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

include <bbot/common.cli>;

"\section=1"
"\name=bbot-agent"
"\summary=build bot agent"

namespace bbot
{
  {
    "<options> <file>",

    "
    \h|SYNOPSIS|

    \cb{bbot-agent --help}\n
    \cb{bbot-agent --version}\n
    \c{\b{bbot-agent} [<options>] <toolchain>}

    \h|DESCRIPTION|

    \cb{bbot-agent} @@ TODO.
    "
  }

  class agent_options
  {
    "\h|OPTIONS|"

    size_t --cpu = 1
    {
      "<num>",
      "Number of CPUs (threads) to use, 1 by default."
    };

    size_t --ram (1024 * 1024) // 1G
    {
      "<num>",
      "Amount of RAM (in kB) to use, 1G by default."
    };

    bool --help {"Print usage information and exit."}
    bool --version {"Print version and exit."}
  };

  "
  \h|EXIT STATUS|

  Non-zero exit status is returned in case of an error.
  "
}