Explorar o código

Fix force flag not working with invalid download limits

timvisee %!s(int64=6) %!d(string=hai) anos
pai
achega
37579b8f65
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/cmd/arg/download_limit.rs

+ 2 - 2
src/cmd/arg/download_limit.rs

@@ -19,9 +19,9 @@ impl ArgDownloadLimit {
         // Get the download value
         let mut downloads = Self::value(matches)?;
 
-        // Get number of allowed downloads, return if allowed
+        // Get number of allowed downloads, return if allowed or when forcing
         let allowed = downloads_max(api_version, auth);
-        if allowed.contains(&downloads) {
+        if allowed.contains(&downloads) || main_matcher.force() {
             return Some(downloads);
         }