From 2313a4d2af555235f54eb7dbd426e708a5200e33 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 11 Sep 2011 16:23:39 -0500 Subject: brew-options: add --installed flag `brew options --installed` will print options for formulae that are already installed. Closes #7565. Signed-off-by: Jack Nagel --- Library/Contributions/manpages/brew.1.md | 4 +++- Library/Homebrew/cmd/options.rb | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'Library') 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 are given, check all installed brews. - * `options [--compact] [--all]` : + * `options [--compact] [--all] [--installed]` : Display install options specific to . 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 -- cgit v1.2.3