livecheck: Clarify --extract-plist behavior

From the description of the `--extract-plist` option, it would seem
that the `ExtractPlist` strategy is only enabled when the option is
used. Instead, livecheck automatically enables the strategy if the
command is run on only one cask. This rewords descriptions of the
option to clarify the behavior.
This commit is contained in:
Sam Ford 2024-03-29 09:25:36 -04:00
parent a8d506fdda
commit a4134125f2
No known key found for this signature in database
GPG Key ID: 7AF5CBEE1DD6F76D
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ module Homebrew
switch "--cask", "--casks",
description: "Only check casks."
switch "--extract-plist",
description: "Include casks using the ExtractPlist livecheck strategy."
description: "Enable checking multiple casks with ExtractPlist strategy."
conflicts "--debug", "--json"
conflicts "--tap=", "--eval-all", "--installed"

View File

@ -218,7 +218,7 @@ module Homebrew
)
end
# If only one formula/cask is being checked, we enable extract-plist
# Allow ExtractPlist strategy if only one formula/cask is being checked.
extract_plist = true if formulae_and_casks_total == 1
formulae_checked = formulae_and_casks_to_check.map.with_index do |formula_or_cask, i|