diff --git a/src/args/mod.rs b/src/args/mod.rs index 7820842..411e368 100644 --- a/src/args/mod.rs +++ b/src/args/mod.rs @@ -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; @@ -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()))), }