Fix force flag not working with invalid download limits
This commit is contained in:
parent
1754bda00f
commit
37579b8f65
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue