From 1283221f672d7e97657581c5e5f2c3852812b376 Mon Sep 17 00:00:00 2001 From: khyernet Date: Sun, 21 Apr 2024 01:07:47 -0800 Subject: [PATCH] args bulk-get: move same_filenames instead of method (what was i thinking) --- src/args/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/args/mod.rs b/src/args/mod.rs index 411e368..e34b320 100644 --- a/src/args/mod.rs +++ b/src/args/mod.rs @@ -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 = Vec::new(); let mut dummy_args = self.raw.clone(); let mut has_url = false; @@ -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()))),