From 44b0050b941926e32ce11625e9a53380e197fc0f Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 18 Feb 2023 18:47:49 +0000 Subject: [PATCH] cmd/(outdated,upgrade): Document `-g` as a shorter `--greedy` for Casks - Fixes https://github.com/Homebrew/brew/issues/ 14682. --- Library/Homebrew/cask/cmd/upgrade.rb | 2 +- Library/Homebrew/cmd/outdated.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/cmd/upgrade.rb b/Library/Homebrew/cask/cmd/upgrade.rb index 86051ba96b..b3c87a60d8 100644 --- a/Library/Homebrew/cask/cmd/upgrade.rb +++ b/Library/Homebrew/cask/cmd/upgrade.rb @@ -16,7 +16,7 @@ module Cask [:switch, "--skip-cask-deps", { description: "Skip installing cask dependencies.", }], - [:switch, "--greedy", { + [:switch, "-g", "--greedy", { description: "Also include casks with `auto_updates true` or `version :latest`.", }], [:switch, "--greedy-latest", { diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb index 256459c2d1..28186cce9a 100644 --- a/Library/Homebrew/cmd/outdated.rb +++ b/Library/Homebrew/cmd/outdated.rb @@ -36,7 +36,7 @@ module Homebrew description: "Fetch the upstream repository to detect if the HEAD installation of the " \ "formula is outdated. Otherwise, the repository's HEAD will only be checked for " \ "updates when a new stable or development version has been released." - switch "--greedy", + switch "-g", "--greedy", description: "Also include outdated casks with `auto_updates true` or `version :latest`." switch "--greedy-latest",