Skip to content

Commit

Permalink
cmd/--cache: undeprecate --bottle-tag
Browse files Browse the repository at this point in the history
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 Homebrew#15632.
  • Loading branch information
carlocab committed Jul 7, 2023
1 parent cb61785 commit f44e74d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Library/Homebrew/cmd/--cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def self.__cache_args
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",
Expand Down Expand Up @@ -97,7 +96,6 @@ def self.print_formula_cache(formula, os:, arch:, args:)
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)
Expand Down

0 comments on commit f44e74d

Please sign in to comment.