aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-05 12:58:41 +0000
committerGitHub <[email protected]>2020-03-05 12:58:41 +0000
commitf3f39b4327ea2dd0a91455df7e3bae1972c060e9 (patch)
treeaf90b62fd953852d10df513a6995450e5c97a5f7
parentaf50e4ff062e1b34c8447c119365c91e8f617d8a (diff)
parent17876d79e46c6ccfae40549d3139d0ae4c2a56de (diff)
Merge #3475
3475: Fix options for analysis-bench r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-rw-r--r--crates/rust-analyzer/src/bin/args.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/bin/args.rs b/crates/rust-analyzer/src/bin/args.rs
index 5ad3963a2..993d3d0b6 100644
--- a/crates/rust-analyzer/src/bin/args.rs
+++ b/crates/rust-analyzer/src/bin/args.rs
@@ -171,14 +171,16 @@ ARGS:
171rust-analyzer-analysis-bench 171rust-analyzer-analysis-bench
172 172
173USAGE: 173USAGE:
174 rust-analyzer analysis-bench [FLAGS] [OPTIONS] [PATH] 174 rust-analyzer analysis-bench [FLAGS] [OPTIONS]
175 175
176FLAGS: 176FLAGS:
177 -h, --help Prints help information 177 -h, --help Prints help information
178 -v, --verbose 178 -v, --verbose
179 179
180OPTIONS: 180OPTIONS:
181 --project <PATH> Path to directory with Cargo.toml
181 --complete <PATH:LINE:COLUMN> Compute completions at this location 182 --complete <PATH:LINE:COLUMN> Compute completions at this location
183 --goto-def <PATH:LINE:COLUMN> Compute goto definition at this location
182 --highlight <PATH> Hightlight this file 184 --highlight <PATH> Hightlight this file
183 185
184ARGS: 186ARGS:
@@ -187,7 +189,7 @@ ARGS:
187 return Ok(Err(HelpPrinted)); 189 return Ok(Err(HelpPrinted));
188 } 190 }
189 191
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();
191 let highlight_path: Option<String> = matches.opt_value_from_str("--highlight")?; 193 let highlight_path: Option<String> = matches.opt_value_from_str("--highlight")?;
192 let complete_path: Option<Position> = matches.opt_value_from_str("--complete")?; 194 let complete_path: Option<Position> = matches.opt_value_from_str("--complete")?;
193 let goto_def_path: Option<Position> = matches.opt_value_from_str("--goto-def")?; 195 let goto_def_path: Option<Position> = matches.opt_value_from_str("--goto-def")?;