From aad2ee49470821c67b50522bb1d711a76c003476 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 16 Jul 2019 08:38:02 +0200 Subject: [PATCH] src/bin/pxar.rs: only print archive name in verbose mode --- src/bin/pxar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pxar.rs b/src/bin/pxar.rs index 45d1ef74..1ba81d58 100644 --- a/src/bin/pxar.rs +++ b/src/bin/pxar.rs @@ -48,7 +48,7 @@ fn dump_archive( let mut reader = stdin.lock(); dump_archive_from_reader(&mut reader, feature_flags, verbose)?; } else { - println!("PXAR dump: {}", archive); + if verbose { println!("PXAR dump: {}", archive); } let file = std::fs::File::open(archive)?; let mut reader = std::io::BufReader::new(file); dump_archive_from_reader(&mut reader, feature_flags, verbose)?;