aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/bin/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rust-analyzer/src/bin/main.rs')
-rw-r--r--crates/rust-analyzer/src/bin/main.rs32
1 files changed, 19 insertions, 13 deletions
diff --git a/crates/rust-analyzer/src/bin/main.rs b/crates/rust-analyzer/src/bin/main.rs
index dd15b3458..a744a6695 100644
--- a/crates/rust-analyzer/src/bin/main.rs
+++ b/crates/rust-analyzer/src/bin/main.rs
@@ -19,19 +19,25 @@ fn main() -> Result<()> {
19 args::Command::Parse { no_dump } => cli::parse(no_dump)?, 19 args::Command::Parse { no_dump } => cli::parse(no_dump)?,
20 args::Command::Symbols => cli::symbols()?, 20 args::Command::Symbols => cli::symbols()?,
21 args::Command::Highlight { rainbow } => cli::highlight(rainbow)?, 21 args::Command::Highlight { rainbow } => cli::highlight(rainbow)?,
22 args::Command::Stats { randomize, memory_usage, only, with_deps, path } => { 22 args::Command::Stats {
23 cli::analysis_stats( 23 randomize,
24 args.verbosity, 24 memory_usage,
25 memory_usage, 25 only,
26 path.as_ref(), 26 with_deps,
27 only.as_ref().map(String::as_ref), 27 path,
28 with_deps, 28 load_output_dirs,
29 randomize, 29 } => cli::analysis_stats(
30 )? 30 args.verbosity,
31 } 31 memory_usage,
32 32 path.as_ref(),
33 args::Command::Bench { path, what } => { 33 only.as_ref().map(String::as_ref),
34 cli::analysis_bench(args.verbosity, path.as_ref(), what)? 34 with_deps,
35 randomize,
36 load_output_dirs,
37 )?,
38
39 args::Command::Bench { path, what, load_output_dirs } => {
40 cli::analysis_bench(args.verbosity, path.as_ref(), what, load_output_dirs)?
35 } 41 }
36 42
37 args::Command::RunServer => run_server()?, 43 args::Command::RunServer => run_server()?,