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:
Carlo Cabrera 2023-07-07 15:09:21 +08:00
parent cb6178596b
commit f44e74dc34
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -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)