diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 4 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index ef991dffa..ab0081824 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -184,7 +184,7 @@ For the full command list, see the COMMANDS section. If no <formulae> are given, check all installed brews. - * `options [--compact] [--all]` <formula>: + * `options [--compact] [--all] [--installed]` <formula>: Display install options specific to <formula>. If `--compact` is passed, show all options on a single line separated by @@ -192,6 +192,8 @@ For the full command list, see the COMMANDS section. If `--all` is passed, show options for all formulae. + If `--installed` is passed, show options for all installed formulae. + * `outdated [--quiet]`: Show formulae that have an updated version available. diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index 8145e517b..454a2c7ce 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -3,6 +3,8 @@ require 'formula' def ff if ARGV.include? "--all" Formula.all + elsif ARGV.include? "--installed" + Formula.all.reject{ |f| not f.installed? } else ARGV.formulae end |
