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")?;