mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cask/audit
: fix arg handling
This commit is contained in:
parent
de5a13b94f
commit
92ef8f5c0d
@ -27,15 +27,16 @@ module Cask
|
||||
new_cask: nil)
|
||||
|
||||
# `new_cask` implies `online` and `strict`
|
||||
online = new_cask if online.nil?
|
||||
strict = new_cask if strict.nil?
|
||||
online = new_cask if online.blank?
|
||||
strict = new_cask if strict.blank?
|
||||
|
||||
# `online` implies `appcast` and `download`
|
||||
appcast = online if appcast.nil?
|
||||
download = online if download.nil?
|
||||
appcast = online if appcast.nil? # `appcast` is `nil` if neither `--appcast` nor `--no-appcast` are passed
|
||||
download = online if download.blank?
|
||||
|
||||
odie online
|
||||
# `new_cask` implies `token_conflicts`
|
||||
token_conflicts = new_cask if token_conflicts.nil?
|
||||
token_conflicts = new_cask if token_conflicts.blank?
|
||||
|
||||
@cask = cask
|
||||
@appcast = appcast
|
||||
|
@ -1,7 +1,7 @@
|
||||
.\" generated with Ronn/v0.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"
|
||||
\fBbrew\fR \- The Missing Package Manager for macOS (or Linux)
|
||||
|
Loading…
x
Reference in New Issue
Block a user