From 915489714baefac71f9dcc6c42c20a02645d7e23 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 12 May 2019 20:54:44 +0300 Subject: allow to specify path in analysis-stats --- crates/ra_cli/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/ra_cli/src/main.rs') diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs index 11790d2e7..5a8136823 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs @@ -25,7 +25,8 @@ fn main() -> Result<()> { .subcommand( SubCommand::with_name("analysis-stats") .arg(Arg::with_name("verbose").short("v")) - .arg(Arg::with_name("only").short("o").takes_value(true)), + .arg(Arg::with_name("only").short("o").takes_value(true)) + .arg(Arg::with_name("path")), ) .get_matches(); match matches.subcommand() { @@ -53,8 +54,9 @@ fn main() -> Result<()> { } ("analysis-stats", Some(matches)) => { let verbose = matches.is_present("verbose"); + let path = matches.value_of("path").unwrap_or(""); let only = matches.value_of("only"); - analysis_stats::run(verbose, only)?; + analysis_stats::run(verbose, path, only)?; } _ => unreachable!(), } -- cgit v1.2.3