Browse Source

Fix force flag not working with invalid download limits

timvisee 6 years ago
parent
commit
37579b8f65
1 changed files with 2 additions and 2 deletions
  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
         // Get the download value
         let mut downloads = Self::value(matches)?;
         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);
         let allowed = downloads_max(api_version, auth);
-        if allowed.contains(&downloads) {
+        if allowed.contains(&downloads) || main_matcher.force() {
             return Some(downloads);
             return Some(downloads);
         }
         }