let verbose = param["verbose"].as_bool().unwrap_or(false);
+ let allow_existing_dirs = param["allow-existing-dirs"].as_bool().unwrap_or(false);
+
let archive_name = tools::required_string_param(¶m, "archive-name")?;
let client = HttpClient::new(repo.host(), repo.user())?;
if let Some(target) = target {
+ if allow_existing_dirs {
+ unimplemented!();
+ }
+
let feature_flags = pxar::CA_FORMAT_DEFAULT;
let mut decoder = pxar::SequentialDecoder::new(&mut reader, feature_flags, |path| {
if verbose {
"###
))
+ .optional(
+ "allow-existing-dirs",
+ BooleanSchema::new("Do not fail if directories already exists.").default(false))
.optional("repository", REPO_URL_SCHEMA.clone())
.optional("keyfile", StringSchema::new("Path to encryption key."))
.optional(