diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index 63a3eb4b6a..cbf333187d 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -91,6 +91,7 @@ module Homebrew }], [:switch, "-g", "--greedy", { description: "Also include casks with `auto_updates true` or `version :latest`.", + env: :upgrade_greedy, }], [:switch, "--greedy-latest", { description: "Also include casks with `version :latest`.",