diff options
author | Geobert Quach <[email protected]> | 2019-09-10 11:31:40 +0100 |
---|---|---|
committer | Geobert Quach <[email protected]> | 2019-09-10 11:31:40 +0100 |
commit | 735845d86e6ab94891e421823158f374e2f3412a (patch) | |
tree | f6675c54761e9aeb2367764d2746c80bc290741f /crates/ra_cli/src/help.rs | |
parent | e2ebb467bdf3ebb7d29260adb95c56594c6db282 (diff) |
refactor(args): Switch to pico-args
Diffstat (limited to 'crates/ra_cli/src/help.rs')
-rw-r--r-- | crates/ra_cli/src/help.rs | 96 |
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 @@ | |||
1 | pub fn print_global_help() { | ||
2 | println!( | ||
3 | "ra-cli | ||
4 | |||
5 | USAGE: | ||
6 | ra_cli <SUBCOMMAND> | ||
7 | |||
8 | FLAGS: | ||
9 | -h, --help Prints help information | ||
10 | |||
11 | SUBCOMMANDS: | ||
12 | analysis-bench | ||
13 | analysis-stats | ||
14 | highlight | ||
15 | parse | ||
16 | symbols" | ||
17 | ) | ||
18 | } | ||
19 | |||
20 | pub fn print_analysis_bench_help() { | ||
21 | println!( | ||
22 | "ra_cli-analysis-bench | ||
23 | |||
24 | USAGE: | ||
25 | ra_cli analysis-bench [FLAGS] [OPTIONS] [PATH] | ||
26 | |||
27 | FLAGS: | ||
28 | -h, --help Prints help information | ||
29 | -v, --verbose | ||
30 | |||
31 | OPTIONS: | ||
32 | --complete <PATH:LINE:COLUMN> Compute completions at this location | ||
33 | --highlight <PATH> Hightlight this file | ||
34 | |||
35 | ARGS: | ||
36 | <PATH> Project to analyse" | ||
37 | ) | ||
38 | } | ||
39 | |||
40 | pub fn print_analysis_stats_help() { | ||
41 | println!( | ||
42 | "ra-cli-analysis-stats | ||
43 | |||
44 | USAGE: | ||
45 | ra_cli analysis-stats [FLAGS] [OPTIONS] [PATH] | ||
46 | |||
47 | FLAGS: | ||
48 | -h, --help Prints help information | ||
49 | --memory-usage | ||
50 | -v, --verbose | ||
51 | |||
52 | OPTIONS: | ||
53 | -o <ONLY> | ||
54 | |||
55 | ARGS: | ||
56 | <PATH>" | ||
57 | ) | ||
58 | } | ||
59 | |||
60 | pub fn print_highlight_help() { | ||
61 | println!( | ||
62 | "ra-cli-highlight | ||
63 | |||
64 | USAGE: | ||
65 | ra_cli highlight [FLAGS] | ||
66 | |||
67 | FLAGS: | ||
68 | -h, --help Prints help information | ||
69 | -r, --rainbow" | ||
70 | ) | ||
71 | } | ||
72 | |||
73 | pub fn print_symbols_help() { | ||
74 | println!( | ||
75 | "ra-cli-symbols | ||
76 | |||
77 | USAGE: | ||
78 | ra_cli highlight [FLAGS] | ||
79 | |||
80 | FLAGS: | ||
81 | -h, --help Prints help inforamtion" | ||
82 | ) | ||
83 | } | ||
84 | |||
85 | pub fn print_parse_help() { | ||
86 | println!( | ||
87 | "ra-cli-parse | ||
88 | |||
89 | USAGE: | ||
90 | ra_cli parse [FLAGS] | ||
91 | |||
92 | FLAGS: | ||
93 | -h, --help Prints help inforamtion | ||
94 | --no-dump" | ||
95 | ) | ||
96 | } | ||