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.rs27
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 @@
1pub fn print_global_help() { 1pub const GLOBAL_HELP: &str = "tasks
2 println!(
3 "tasks
4 2
5USAGE: 3USAGE:
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
22pub fn print_install_ra_help() { 18pub const INSTALL_RA_HELP: &str = "ra_tools-install-ra
23 println!(
24 "ra_tools-install-ra
25 19
26USAGE: 20USAGE:
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
37pub fn print_no_param_subcommand_help(subcommand: &str) { 29pub fn print_no_param_subcommand_help(subcommand: &str) {
38 println!( 30 eprintln!(
39 "ra_tools-{} 31 "ra_tools-{}
40 32
41USAGE: 33USAGE:
@@ -47,10 +39,7 @@ FLAGS:
47 ); 39 );
48} 40}
49 41
50pub fn print_install_ra_conflict() { 42pub 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
54For more information try --help" 45For more information try --help";
55 )
56}