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