Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
args bulk-get: make filenames specified as the same if a custom filen…
Browse files Browse the repository at this point in the history
…ame is specified
  • Loading branch information
khyerdev committed Apr 21, 2024
1 parent b63870f commit ad01a18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/args/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ impl Args {
},
"bulk" | "b" => {
if let Some(action) = self.raw.get(2) {
self.method = Some(types::Method::Bulk);
match action.as_str() {
"get" | "g" => {
self.same_filenames = true;
Expand Down Expand Up @@ -211,6 +210,9 @@ impl Args {
});
}
self.bulk_array = Some(arg_array);
if flags.out_filename.is_some() {
self.method = Some(types::Method::Bulk);
}
},
Err(e) => return Err(types::ParseError::throw_bulkerr(&format!("Invalid flags | {}", e.print()))),
}
Expand Down

0 comments on commit ad01a18

Please sign in to comment.