diff options
Diffstat (limited to 'crates/ra_tools/src/help.rs')
-rw-r--r-- | crates/ra_tools/src/help.rs | 56 |
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 @@ | |||
1 | pub fn print_global_help() { | ||
2 | println!( | ||
3 | "tasks | ||
4 | |||
5 | USAGE: | ||
6 | ra_tools <SUBCOMMAND> | ||
7 | |||
8 | FLAGS: | ||
9 | -h, --help Prints help information | ||
10 | |||
11 | SUBCOMMANDS: | ||
12 | format | ||
13 | format-hook | ||
14 | fuzz-tests | ||
15 | gen-syntax | ||
16 | gen-tests | ||
17 | install-ra | ||
18 | lint" | ||
19 | ) | ||
20 | } | ||
21 | |||
22 | pub fn print_install_ra_help() { | ||
23 | println!( | ||
24 | "ra_tools-install-ra | ||
25 | |||
26 | USAGE: | ||
27 | ra_tools.exe install-ra [FLAGS] | ||
28 | |||
29 | FLAGS: | ||
30 | --client-code | ||
31 | -h, --help Prints help information | ||
32 | --jemalloc | ||
33 | --server" | ||
34 | ) | ||
35 | } | ||
36 | |||
37 | pub fn print_no_param_subcommand_help(subcommand: &str) { | ||
38 | println!( | ||
39 | "ra_tools-{} | ||
40 | |||
41 | USAGE: | ||
42 | ra_tools {} | ||
43 | |||
44 | FLAGS: | ||
45 | -h, --help Prints help information", | ||
46 | subcommand, subcommand | ||
47 | ); | ||
48 | } | ||
49 | |||
50 | pub fn print_install_ra_conflict() { | ||
51 | println!( | ||
52 | "error: The argument `--server` cannot be used with `--client-code` | ||
53 | |||
54 | For more information try --help" | ||
55 | ) | ||
56 | } | ||