cmd/--cache: undeprecate --bottle-tag
This is useful for quickly examining bottles with something like
brew fetch --bottle-tag=$tag $formula && \
tar xf "$(brew --cache --bottle-tag=$tag $formula)"
See discussion at #15632.
This commit is contained in:
parent
cb6178596b
commit
f44e74dc34
@ -27,8 +27,7 @@ module Homebrew
|
||||
switch "--force-bottle",
|
||||
description: "Show the cache file used when pouring a bottle."
|
||||
flag "--bottle-tag=",
|
||||
description: "Show the cache file used when pouring a bottle for the given tag.",
|
||||
hidden: true
|
||||
description: "Show the cache file used when pouring a bottle for the given tag."
|
||||
switch "--HEAD",
|
||||
description: "Show the cache file used when building from HEAD."
|
||||
switch "--formula", "--formulae",
|
||||
@ -97,7 +96,6 @@ module Homebrew
|
||||
arch: args.arch&.to_sym,
|
||||
)
|
||||
bottle_tag = if (bottle_tag = args.bottle_tag&.to_sym)
|
||||
odeprecated "brew --cache --bottle-tag", "brew --cache --os --arch"
|
||||
Utils::Bottles::Tag.from_symbol(bottle_tag)
|
||||
else
|
||||
Utils::Bottles::Tag.new(system: os, arch: arch)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user