Skip to content

Commit 17876d7

Browse files
committed
Fix options for analysis-bench
1 parent ab11c6f commit 17876d7

File tree

1 file changed

+4
-2
lines changed
  • crates/rust-analyzer/src/bin

1 file changed

+4
-2
lines changed

crates/rust-analyzer/src/bin/args.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,16 @@ ARGS:
171171
rust-analyzer-analysis-bench
172172
173173
USAGE:
174-
rust-analyzer analysis-bench [FLAGS] [OPTIONS] [PATH]
174+
rust-analyzer analysis-bench [FLAGS] [OPTIONS]
175175
176176
FLAGS:
177177
-h, --help Prints help information
178178
-v, --verbose
179179
180180
OPTIONS:
181+
--project <PATH> Path to directory with Cargo.toml
181182
--complete <PATH:LINE:COLUMN> Compute completions at this location
183+
--goto-def <PATH:LINE:COLUMN> Compute goto definition at this location
182184
--highlight <PATH> Hightlight this file
183185
184186
ARGS:
@@ -187,7 +189,7 @@ ARGS:
187189
return Ok(Err(HelpPrinted));
188190
}
189191

190-
let path: PathBuf = matches.opt_value_from_str("--path")?.unwrap_or_default();
192+
let path: PathBuf = matches.opt_value_from_str("--project")?.unwrap_or_default();
191193
let highlight_path: Option<String> = matches.opt_value_from_str("--highlight")?;
192194
let complete_path: Option<Position> = matches.opt_value_from_str("--complete")?;
193195
let goto_def_path: Option<Position> = matches.opt_value_from_str("--goto-def")?;

0 commit comments

Comments
 (0)