blob: 637803c0ce4176002933caef91a59fe653f88df6 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
// file : bdep/bdep.cli
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
include <bdep/common.cli>;
"\section=1"
"\name=bdep"
"\summary=project dependency manager"
namespace bdep
{
{
"<command> <topic> <common-options> <command-options> <command-args>",
"\h|SYNOPSIS|
\c{\b{bdep --help}\n
\b{bdep --version}\n
\b{bdep help} [<command> | <topic>]\n
\b{bdep} [<common-options>] <command> [<command-options>] <command-args>}
\h|DESCRIPTION|
The \cb{build2} project dependency manager is used to @@ TODO.
For a detailed description of any command or help topic, use the
\cb{help} command or see the corresponding man page (the man pages have
the \cb{bdep-} prefix, for example \l{bdep-help(1)}). Note also that
<command-options> and <command-args> can be specified in any order and
<common-options> can be specified as part of <command-options>."
}
// For usage it's nice to see the list of commands on the first page. So
// let's not put this "extended" description into usage.
//
{
"",
"",
//@@ TODO
"Description...
"
}
class commands
{
"\h|COMMANDS|"
//
// NOTE: Use the same sentence as in the page's \summary and make
// sure it is short enough to fit in one line in usage.
//
bool help
{
"[<topic>]",
"\l{bdep-help(1)} \- show help for a command or help topic",
""
}
bool config
{
"\l{bdep-config(1)} \- manage project's build configurations"
}
bool init
{
"\l{bdep-init(1)} \- @@ TODO"
}
};
// Make sure these don't conflict with command names above.
//
class topics
{
"\h|HELP TOPICS|"
bool common-options
{
"\l{bdep-common-options(1)} \- details on common options"
}
};
class options: common_options
{
bool --help;
bool --version;
};
"\h|EXIT STATUS|
Non-zero exit status is returned in case of an error.
"
}
|