add --with-deps option to analysis-stats

This commit is contained in:
Aleksey Kladov 2019-10-24 12:32:19 +03:00
parent 018b621f61
commit 5750ee69ff
2 changed files with 10 additions and 8 deletions

View file

@ -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" => {