summaryrefslogtreecommitdiff
path: root/tests/inheritance/test.cli
blob: 9e43bb549431f07d65ae0335385636eadf399b8c (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
// file      : tests/inheritance/test.cli
// author    : Boris Kolpackov <boris@codesynthesis.com>
// license   : MIT; see accompanying LICENSE file

include <string>;

class base1 = 0
{
  bool --very-long-flag {"Long flag."};
};

class base2
{
  std::string -s {"<str>", "Short string."};
};

class interm: base1
{
  int -i = 1 {"<num>", "Integer."};
};

class options: interm, base2
{
  std::string --string {"<str>", "Long string."};
};