Change: --skip-installed to --missing

This commit is contained in:
Robin Ury 2023-05-17 14:53:19 -05:00
parent 9b884942d7
commit dddec94fd7
No known key found for this signature in database
GPG Key ID: E350E5E778752581
3 changed files with 6 additions and 6 deletions

View File

@ -49,8 +49,8 @@ module Homebrew
switch "--installed", switch "--installed",
description: "List dependencies for formulae that are currently installed. If <formula> is " \ description: "List dependencies for formulae that are currently installed. If <formula> is " \
"specified, list only its dependencies that are currently installed." "specified, list only its dependencies that are currently installed."
switch "--skip-installed", switch "--missing",
description: "Skip dependencies for formulae that are currently installed." description: "Show only missing dependencies."
switch "--eval-all", switch "--eval-all",
description: "Evaluate all available formulae and casks, whether installed or not, to list " \ description: "Evaluate all available formulae and casks, whether installed or not, to list " \
"their dependencies." "their dependencies."
@ -66,7 +66,7 @@ module Homebrew
description: "Treat all named arguments as casks." description: "Treat all named arguments as casks."
conflicts "--tree", "--graph" conflicts "--tree", "--graph"
conflicts "--installed", "--skip-installed" conflicts "--installed", "--missing"
conflicts "--installed", "--eval-all" conflicts "--installed", "--eval-all"
conflicts "--installed", "--all" conflicts "--installed", "--all"
conflicts "--formula", "--cask" conflicts "--formula", "--cask"

View File

@ -27,7 +27,7 @@ module Homebrew
description: "Resolve more than one level of dependencies." description: "Resolve more than one level of dependencies."
switch "--installed", switch "--installed",
description: "Only list formulae and casks that are currently installed." description: "Only list formulae and casks that are currently installed."
switch "--skip-installed", switch "--missing",
description: "Only list formulae and casks that are not currently installed." description: "Only list formulae and casks that are not currently installed."
switch "--eval-all", switch "--eval-all",
description: "Evaluate all available formulae and casks, whether installed or not, to show " \ description: "Evaluate all available formulae and casks, whether installed or not, to show " \
@ -49,7 +49,7 @@ module Homebrew
conflicts "--formula", "--cask" conflicts "--formula", "--cask"
conflicts "--installed", "--all" conflicts "--installed", "--all"
conflicts "--installed", "--skip-installed" conflicts "--missing", "--installed"
named_args :formula, min: 1 named_args :formula, min: 1
end end

View File

@ -30,7 +30,7 @@ module DependenciesHelpers
end end
ignores << "recommended?" if args.skip_recommended? ignores << "recommended?" if args.skip_recommended?
ignores << "satisfied?" if args.skip_installed? ignores << "satisfied?" if args.missing?
[includes, ignores] [includes, ignores]
end end