cask/audit: fix arg handling

This commit is contained in:
Rylan Polster 2021-11-03 14:46:45 -04:00
parent de5a13b94f
commit 92ef8f5c0d
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
2 changed files with 7 additions and 6 deletions

View File

@ -27,15 +27,16 @@ module Cask
new_cask: nil) new_cask: nil)
# `new_cask` implies `online` and `strict` # `new_cask` implies `online` and `strict`
online = new_cask if online.nil? online = new_cask if online.blank?
strict = new_cask if strict.nil? strict = new_cask if strict.blank?
# `online` implies `appcast` and `download` # `online` implies `appcast` and `download`
appcast = online if appcast.nil? appcast = online if appcast.nil? # `appcast` is `nil` if neither `--appcast` nor `--no-appcast` are passed
download = online if download.nil? download = online if download.blank?
odie online
# `new_cask` implies `token_conflicts` # `new_cask` implies `token_conflicts`
token_conflicts = new_cask if token_conflicts.nil? token_conflicts = new_cask if token_conflicts.blank?
@cask = cask @cask = cask
@appcast = appcast @appcast = appcast

View File

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3 .\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3
. .
.TH "BREW" "1" "October 2021" "Homebrew" "brew" .TH "BREW" "1" "November 2021" "Homebrew" "brew"
. .
.SH "NAME" .SH "NAME"
\fBbrew\fR \- The Missing Package Manager for macOS (or Linux) \fBbrew\fR \- The Missing Package Manager for macOS (or Linux)