diff options
author | Geobert Quach <[email protected]> | 2019-09-10 16:17:11 +0100 |
---|---|---|
committer | Geobert Quach <[email protected]> | 2019-09-10 16:17:11 +0100 |
commit | aa894ace1fc4600dbc94bccb05532154ee2288d8 (patch) | |
tree | f40d8456b8af4a7315da5fb8f07aaeaca7c371a6 /crates/ra_cli/src/help.rs | |
parent | 4e94c467131a7685b0a0a52b372aa0dd76abba36 (diff) |
refactor(args): Apply comments
Diffstat (limited to 'crates/ra_cli/src/help.rs')
-rw-r--r-- | crates/ra_cli/src/help.rs | 48 |
1 files changed, 12 insertions, 36 deletions
diff --git a/crates/ra_cli/src/help.rs b/crates/ra_cli/src/help.rs index bf31472ac..5171578f0 100644 --- a/crates/ra_cli/src/help.rs +++ b/crates/ra_cli/src/help.rs | |||
@@ -1,6 +1,4 @@ | |||
1 | pub fn print_global_help() { | 1 | pub const GLOBAL_HELP: &str = "ra-cli |
2 | println!( | ||
3 | "ra-cli | ||
4 | 2 | ||
5 | USAGE: | 3 | USAGE: |
6 | ra_cli <SUBCOMMAND> | 4 | ra_cli <SUBCOMMAND> |
@@ -13,13 +11,9 @@ SUBCOMMANDS: | |||
13 | analysis-stats | 11 | analysis-stats |
14 | highlight | 12 | highlight |
15 | parse | 13 | parse |
16 | symbols" | 14 | symbols"; |
17 | ) | ||
18 | } | ||
19 | 15 | ||
20 | pub fn print_analysis_bench_help() { | 16 | pub const ANALYSIS_BENCH_HELP: &str = "ra_cli-analysis-bench |
21 | println!( | ||
22 | "ra_cli-analysis-bench | ||
23 | 17 | ||
24 | USAGE: | 18 | USAGE: |
25 | ra_cli analysis-bench [FLAGS] [OPTIONS] [PATH] | 19 | ra_cli analysis-bench [FLAGS] [OPTIONS] [PATH] |
@@ -33,13 +27,9 @@ OPTIONS: | |||
33 | --highlight <PATH> Hightlight this file | 27 | --highlight <PATH> Hightlight this file |
34 | 28 | ||
35 | ARGS: | 29 | ARGS: |
36 | <PATH> Project to analyse" | 30 | <PATH> Project to analyse"; |
37 | ) | ||
38 | } | ||
39 | 31 | ||
40 | pub fn print_analysis_stats_help() { | 32 | pub const ANALYSIS_STATS_HELP: &str = "ra-cli-analysis-stats |
41 | println!( | ||
42 | "ra-cli-analysis-stats | ||
43 | 33 | ||
44 | USAGE: | 34 | USAGE: |
45 | ra_cli analysis-stats [FLAGS] [OPTIONS] [PATH] | 35 | ra_cli analysis-stats [FLAGS] [OPTIONS] [PATH] |
@@ -53,44 +43,30 @@ OPTIONS: | |||
53 | -o <ONLY> | 43 | -o <ONLY> |
54 | 44 | ||
55 | ARGS: | 45 | ARGS: |
56 | <PATH>" | 46 | <PATH>"; |
57 | ) | ||
58 | } | ||
59 | 47 | ||
60 | pub fn print_highlight_help() { | 48 | pub const HIGHLIGHT_HELP: &str = "ra-cli-highlight |
61 | println!( | ||
62 | "ra-cli-highlight | ||
63 | 49 | ||
64 | USAGE: | 50 | USAGE: |
65 | ra_cli highlight [FLAGS] | 51 | ra_cli highlight [FLAGS] |
66 | 52 | ||
67 | FLAGS: | 53 | FLAGS: |
68 | -h, --help Prints help information | 54 | -h, --help Prints help information |
69 | -r, --rainbow" | 55 | -r, --rainbow"; |
70 | ) | ||
71 | } | ||
72 | 56 | ||
73 | pub fn print_symbols_help() { | 57 | pub const SYMBOLS_HELP: &str = "ra-cli-symbols |
74 | println!( | ||
75 | "ra-cli-symbols | ||
76 | 58 | ||
77 | USAGE: | 59 | USAGE: |
78 | ra_cli highlight [FLAGS] | 60 | ra_cli highlight [FLAGS] |
79 | 61 | ||
80 | FLAGS: | 62 | FLAGS: |
81 | -h, --help Prints help inforamtion" | 63 | -h, --help Prints help inforamtion"; |
82 | ) | ||
83 | } | ||
84 | 64 | ||
85 | pub fn print_parse_help() { | 65 | pub const PARSE_HELP: &str = "ra-cli-parse |
86 | println!( | ||
87 | "ra-cli-parse | ||
88 | 66 | ||
89 | USAGE: | 67 | USAGE: |
90 | ra_cli parse [FLAGS] | 68 | ra_cli parse [FLAGS] |
91 | 69 | ||
92 | FLAGS: | 70 | FLAGS: |
93 | -h, --help Prints help inforamtion | 71 | -h, --help Prints help inforamtion |
94 | --no-dump" | 72 | --no-dump"; |
95 | ) | ||
96 | } | ||