Updated cargo dev setup intellij for cleaner user messages

This commit is contained in:
xFrednet
2021-06-22 00:25:10 +02:00
committed by flip1995
parent b48f041bef
commit 8fdf2897da
2 changed files with 112 additions and 37 deletions

View File

@@ -37,7 +37,11 @@ fn main() {
stderr_length_check::check();
},
("setup", Some(sub_command)) => match sub_command.subcommand() {
("intellij", Some(matches)) => setup::intellij::run(matches.value_of("rustc-repo-path")),
("intellij", Some(matches)) => setup::intellij::setup_rustc_src(
matches
.value_of("rustc-repo-path")
.expect("this field is mandatory and therefore always valid"),
),
("git-hook", Some(matches)) => setup::git_hook::install_hook(matches.is_present("force-override")),
_ => {},
},