From 431067477619ccdd9f67ed7136981a7d4cfc44c6 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Tue, 28 Jun 2022 11:20:22 -0400 Subject: [PATCH] Require an argument to `--bottle-tag` in `fetch` and `--cache` --- Library/Homebrew/cmd/--cache.rb | 2 +- Library/Homebrew/cmd/fetch.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/--cache.rb b/Library/Homebrew/cmd/--cache.rb index e60b996527..1e39aa66c9 100644 --- a/Library/Homebrew/cmd/--cache.rb +++ b/Library/Homebrew/cmd/--cache.rb @@ -24,7 +24,7 @@ module Homebrew description: "Show the cache file used when building from source." switch "--force-bottle", description: "Show the cache file used when pouring a bottle." - flag "--bottle-tag", + flag "--bottle-tag=", 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." diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index 4d68457bde..8c175f14c5 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -20,7 +20,7 @@ module Homebrew Download a bottle (if available) or source packages for e and binaries for s. For files, also print SHA-256 checksums. EOS - flag "--bottle-tag", + flag "--bottle-tag=", description: "Download a bottle for given tag." switch "--HEAD", description: "Fetch HEAD version instead of stable version."