src/bin/pxar.rs - extract: print archive name with --verbose flag
This commit is contained in:
parent
bbd4365c61
commit
40a13369a3
|
@ -132,6 +132,7 @@ fn extract_archive(
|
|||
let mut reader = stdin.lock();
|
||||
extract_archive_from_reader(&mut reader, target, feature_flags, verbose, pattern)?;
|
||||
} else {
|
||||
if verbose { println!("PXAR extract: {}", archive); }
|
||||
let file = std::fs::File::open(archive)?;
|
||||
let mut reader = std::io::BufReader::new(file);
|
||||
extract_archive_from_reader(&mut reader, target, feature_flags, verbose, pattern)?;
|
||||
|
|
Loading…
Reference in New Issue