aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli/src/help.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_cli/src/help.rs')
-rw-r--r--crates/ra_cli/src/help.rs96
1 files changed, 96 insertions, 0 deletions
diff --git a/crates/ra_cli/src/help.rs b/crates/ra_cli/src/help.rs
new file mode 100644
index 000000000..bf31472ac
--- /dev/null
+++ b/crates/ra_cli/src/help.rs
@@ -0,0 +1,96 @@
1pub fn print_global_help() {
2 println!(
3 "ra-cli
4
5USAGE:
6 ra_cli <SUBCOMMAND>
7
8FLAGS:
9 -h, --help Prints help information
10
11SUBCOMMANDS:
12 analysis-bench
13 analysis-stats
14 highlight
15 parse
16 symbols"
17 )
18}
19
20pub fn print_analysis_bench_help() {
21 println!(
22 "ra_cli-analysis-bench
23
24USAGE:
25 ra_cli analysis-bench [FLAGS] [OPTIONS] [PATH]
26
27FLAGS:
28 -h, --help Prints help information
29 -v, --verbose
30
31OPTIONS:
32 --complete <PATH:LINE:COLUMN> Compute completions at this location
33 --highlight <PATH> Hightlight this file
34
35ARGS:
36 <PATH> Project to analyse"
37 )
38}
39
40pub fn print_analysis_stats_help() {
41 println!(
42 "ra-cli-analysis-stats
43
44USAGE:
45 ra_cli analysis-stats [FLAGS] [OPTIONS] [PATH]
46
47FLAGS:
48 -h, --help Prints help information
49 --memory-usage
50 -v, --verbose
51
52OPTIONS:
53 -o <ONLY>
54
55ARGS:
56 <PATH>"
57 )
58}
59
60pub fn print_highlight_help() {
61 println!(
62 "ra-cli-highlight
63
64USAGE:
65 ra_cli highlight [FLAGS]
66
67FLAGS:
68 -h, --help Prints help information
69 -r, --rainbow"
70 )
71}
72
73pub fn print_symbols_help() {
74 println!(
75 "ra-cli-symbols
76
77USAGE:
78 ra_cli highlight [FLAGS]
79
80FLAGS:
81 -h, --help Prints help inforamtion"
82 )
83}
84
85pub fn print_parse_help() {
86 println!(
87 "ra-cli-parse
88
89USAGE:
90 ra_cli parse [FLAGS]
91
92FLAGS:
93 -h, --help Prints help inforamtion
94 --no-dump"
95 )
96}