src/bin/pxar.rs: Make pxar extract target optional

In order to improve usablity, the target on archive extraction will be the
current working directory by default.
A different target can be provided via the optional --target <PATH> parameter.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner
2019-07-16 15:45:17 +02:00
committed by Dietmar Maurer
parent 34a816cc7b
commit bdf0d82ced
2 changed files with 4 additions and 3 deletions

View File

@ -27,6 +27,7 @@ fn pxar_create_and_extract() {
Command::new(exec_path)
.arg("extract")
.arg("./tests/archive.pxar")
.arg("--target")
.arg(dest_dir)
.status()
.unwrap_or_else(|err| {