aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/help.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-17 17:36:55 +0100
committerAleksey Kladov <[email protected]>2019-10-17 20:54:38 +0100
commit7b15c4f7ae95e2e855cb783871906fa7bf364c4c (patch)
tree20a69aaf3ad803a4ca689ec143e9cc0a5049d5ca /xtask/src/help.rs
parent65ab81e35868c09ac9c93cf1d53a607f5caede53 (diff)
WIP: move to xtasks
Diffstat (limited to 'xtask/src/help.rs')
-rw-r--r--xtask/src/help.rs47
1 files changed, 47 insertions, 0 deletions
diff --git a/xtask/src/help.rs b/xtask/src/help.rs
new file mode 100644
index 000000000..4c6bf6b53
--- /dev/null
+++ b/xtask/src/help.rs
@@ -0,0 +1,47 @@
1//! FIXME: write short doc here
2
3pub const GLOBAL_HELP: &str = "tasks
4
5USAGE:
6 ra_tools <SUBCOMMAND>
7
8FLAGS:
9 -h, --help Prints help information
10
11SUBCOMMANDS:
12 format
13 format-hook
14 fuzz-tests
15 codegen
16 gen-tests
17 install
18 lint";
19
20pub const INSTALL_HELP: &str = "ra_tools-install
21
22USAGE:
23 ra_tools.exe install [FLAGS]
24
25FLAGS:
26 --client-code
27 -h, --help Prints help information
28 --jemalloc
29 --server";
30
31pub fn print_no_param_subcommand_help(subcommand: &str) {
32 eprintln!(
33 "ra_tools-{}
34
35USAGE:
36 ra_tools {}
37
38FLAGS:
39 -h, --help Prints help information",
40 subcommand, subcommand
41 );
42}
43
44pub const INSTALL_RA_CONFLICT: &str =
45 "error: The argument `--server` cannot be used with `--client-code`
46
47For more information try --help";