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: move same_filenames instead of method (what was i thin…
Browse files Browse the repository at this point in the history
…king)
  • Loading branch information
khyerdev committed Apr 21, 2024
1 parent ad01a18 commit 1283221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/args/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ 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;
let mut url_list: Vec<String> = Vec::new();
let mut dummy_args = self.raw.clone();
let mut has_url = false;
Expand Down Expand Up @@ -211,7 +211,7 @@ impl Args {
}
self.bulk_array = Some(arg_array);
if flags.out_filename.is_some() {
self.method = Some(types::Method::Bulk);
self.same_filenames = true;
}
},
Err(e) => return Err(types::ParseError::throw_bulkerr(&format!("Invalid flags | {}", e.print()))),
Expand Down

0 comments on commit 1283221

Please sign in to comment.