From f44e74dc34e21fb6731105ec5706e7df7310595a Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:09:21 +0800 Subject: [PATCH] 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. --- Library/Homebrew/cmd/--cache.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/--cache.rb b/Library/Homebrew/cmd/--cache.rb index 76594f381f..294a236fd6 100644 --- a/Library/Homebrew/cmd/--cache.rb +++ b/Library/Homebrew/cmd/--cache.rb @@ -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)