Improve print_arguments

This commit is contained in:
Sergio Gasquez 2022-08-12 11:01:03 +00:00
parent 248b075976
commit 66088e8591
2 changed files with 6 additions and 5 deletions

View File

@ -134,7 +134,7 @@ fn install(args: InstallOpts) -> Result<()> {
&llvm_version,
arch
);
print_arguments(&args);
print_arguments(&args, arch, &targets, &llvm_version);
let mut exports: Vec<String> = Vec::new();
check_rust_installation(&args.nightly_version);

View File

@ -321,9 +321,9 @@ async fn fetch_url(url: String, output: String) -> Result<(), String> {
};
}
pub fn print_arguments(args: &InstallOpts) {
pub fn print_arguments(args: &InstallOpts, arch: &str, targets: &Vec<Chip>, llvm_version: &str) {
println!(
"{} Installing esp-rs with:
"{} Installing esp-rs for {} with:
- Build targets: {:?}
- Cargo home: {:?}
- Clear cache: {:?}
@ -337,13 +337,14 @@ pub fn print_arguments(args: &InstallOpts) {
- Toolchain version: {:?}
- Toolchain destination: {:?}",
DISC,
args.build_target,
arch,
targets,
&args.cargo_home,
args.clear_cache,
&args.espidf_version,
&args.export_file,
args.extra_crates,
args.llvm_version,
llvm_version,
&args.minified_espidf,
args.nightly_version,
&args.rustup_home,