diff options
author | Aleksey Kladov <[email protected]> | 2019-05-12 18:54:44 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-12 18:54:44 +0100 |
commit | 915489714baefac71f9dcc6c42c20a02645d7e23 (patch) | |
tree | fbad4f1b3d724e373eec1649a8acb565bc513250 /crates/ra_cli/src/main.rs | |
parent | 940c538ecf42a53e5a0e0e9ebad7267c1fe843ca (diff) |
allow to specify path in analysis-stats
Diffstat (limited to 'crates/ra_cli/src/main.rs')
-rw-r--r-- | crates/ra_cli/src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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<()> { | |||
25 | .subcommand( | 25 | .subcommand( |
26 | SubCommand::with_name("analysis-stats") | 26 | SubCommand::with_name("analysis-stats") |
27 | .arg(Arg::with_name("verbose").short("v")) | 27 | .arg(Arg::with_name("verbose").short("v")) |
28 | .arg(Arg::with_name("only").short("o").takes_value(true)), | 28 | .arg(Arg::with_name("only").short("o").takes_value(true)) |
29 | .arg(Arg::with_name("path")), | ||
29 | ) | 30 | ) |
30 | .get_matches(); | 31 | .get_matches(); |
31 | match matches.subcommand() { | 32 | match matches.subcommand() { |
@@ -53,8 +54,9 @@ fn main() -> Result<()> { | |||
53 | } | 54 | } |
54 | ("analysis-stats", Some(matches)) => { | 55 | ("analysis-stats", Some(matches)) => { |
55 | let verbose = matches.is_present("verbose"); | 56 | let verbose = matches.is_present("verbose"); |
57 | let path = matches.value_of("path").unwrap_or(""); | ||
56 | let only = matches.value_of("only"); | 58 | let only = matches.value_of("only"); |
57 | analysis_stats::run(verbose, only)?; | 59 | analysis_stats::run(verbose, path, only)?; |
58 | } | 60 | } |
59 | _ => unreachable!(), | 61 | _ => unreachable!(), |
60 | } | 62 | } |