From 17876d79e46c6ccfae40549d3139d0ae4c2a56de Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 5 Mar 2020 13:58:11 +0100 Subject: [PATCH] Fix options for analysis-bench --- crates/rust-analyzer/src/bin/args.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/rust-analyzer/src/bin/args.rs b/crates/rust-analyzer/src/bin/args.rs index 5ad3963a2ef..993d3d0b6ad 100644 --- a/crates/rust-analyzer/src/bin/args.rs +++ b/crates/rust-analyzer/src/bin/args.rs @@ -171,14 +171,16 @@ pub(crate) fn parse() -> Result> { rust-analyzer-analysis-bench USAGE: - rust-analyzer analysis-bench [FLAGS] [OPTIONS] [PATH] + rust-analyzer analysis-bench [FLAGS] [OPTIONS] FLAGS: -h, --help Prints help information -v, --verbose OPTIONS: + --project Path to directory with Cargo.toml --complete Compute completions at this location + --goto-def Compute goto definition at this location --highlight Hightlight this file ARGS: @@ -187,7 +189,7 @@ pub(crate) fn parse() -> Result> { return Ok(Err(HelpPrinted)); } - let path: PathBuf = matches.opt_value_from_str("--path")?.unwrap_or_default(); + let path: PathBuf = matches.opt_value_from_str("--project")?.unwrap_or_default(); let highlight_path: Option = matches.opt_value_from_str("--highlight")?; let complete_path: Option = matches.opt_value_from_str("--complete")?; let goto_def_path: Option = matches.opt_value_from_str("--goto-def")?;