mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
add --with-deps option to analysis-stats
This commit is contained in:
parent
018b621f61
commit
5750ee69ff
2 changed files with 10 additions and 8 deletions
|
@ -96,6 +96,7 @@ fn main() -> Result<()> {
|
|||
};
|
||||
let memory_usage = matches.contains("--memory-usage");
|
||||
let only: Option<String> = matches.opt_value_from_str(["-o", "--only"])?;
|
||||
let with_deps: bool = matches.contains("--with-deps");
|
||||
let path = {
|
||||
let mut trailing = matches.free()?;
|
||||
if trailing.len() != 1 {
|
||||
|
@ -109,6 +110,7 @@ fn main() -> Result<()> {
|
|||
memory_usage,
|
||||
path.as_ref(),
|
||||
only.as_ref().map(String::as_ref),
|
||||
with_deps,
|
||||
)?;
|
||||
}
|
||||
"analysis-bench" => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue