aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tools/src/help.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_tools/src/help.rs')
-rw-r--r--crates/ra_tools/src/help.rs56
1 files changed, 56 insertions, 0 deletions
diff --git a/crates/ra_tools/src/help.rs b/crates/ra_tools/src/help.rs
new file mode 100644
index 000000000..5bfe65734
--- /dev/null
+++ b/crates/ra_tools/src/help.rs
@@ -0,0 +1,56 @@
1pub fn print_global_help() {
2 println!(
3 "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 gen-syntax
16 gen-tests
17 install-ra
18 lint"
19 )
20}
21
22pub fn print_install_ra_help() {
23 println!(
24 "ra_tools-install-ra
25
26USAGE:
27 ra_tools.exe install-ra [FLAGS]
28
29FLAGS:
30 --client-code
31 -h, --help Prints help information
32 --jemalloc
33 --server"
34 )
35}
36
37pub fn print_no_param_subcommand_help(subcommand: &str) {
38 println!(
39 "ra_tools-{}
40
41USAGE:
42 ra_tools {}
43
44FLAGS:
45 -h, --help Prints help information",
46 subcommand, subcommand
47 );
48}
49
50pub fn print_install_ra_conflict() {
51 println!(
52 "error: The argument `--server` cannot be used with `--client-code`
53
54For more information try --help"
55 )
56}