brew-options: add --installed flag
`brew options --installed` will print options for formulae that are already installed. Closes Homebrew/homebrew#7565. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
346a973848
commit
b0f5566566
@ -184,7 +184,7 @@ For the full command list, see the COMMANDS section.
|
|||||||
|
|
||||||
If no <formulae> are given, check all installed brews.
|
If no <formulae> are given, check all installed brews.
|
||||||
|
|
||||||
* `options [--compact] [--all]` <formula>:
|
* `options [--compact] [--all] [--installed]` <formula>:
|
||||||
Display install options specific to <formula>.
|
Display install options specific to <formula>.
|
||||||
|
|
||||||
If `--compact` is passed, show all options on a single line separated by
|
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 `--all` is passed, show options for all formulae.
|
||||||
|
|
||||||
|
If `--installed` is passed, show options for all installed formulae.
|
||||||
|
|
||||||
* `outdated [--quiet]`:
|
* `outdated [--quiet]`:
|
||||||
Show formulae that have an updated version available.
|
Show formulae that have an updated version available.
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,8 @@ require 'formula'
|
|||||||
def ff
|
def ff
|
||||||
if ARGV.include? "--all"
|
if ARGV.include? "--all"
|
||||||
Formula.all
|
Formula.all
|
||||||
|
elsif ARGV.include? "--installed"
|
||||||
|
Formula.all.reject{ |f| not f.installed? }
|
||||||
else
|
else
|
||||||
ARGV.formulae
|
ARGV.formulae
|
||||||
end
|
end
|
||||||
|
|||||||
@ -206,7 +206,7 @@ Check the given \fIformulae\fR for missing dependencies\.
|
|||||||
If no \fIformulae\fR are given, check all installed brews\.
|
If no \fIformulae\fR are given, check all installed brews\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBoptions [\-\-compact] [\-\-all]\fR \fIformula\fR
|
\fBoptions [\-\-compact] [\-\-all] [\-\-installed]\fR \fIformula\fR
|
||||||
Display install options specific to \fIformula\fR\.
|
Display install options specific to \fIformula\fR\.
|
||||||
.
|
.
|
||||||
.IP
|
.IP
|
||||||
@ -215,6 +215,9 @@ If \fB\-\-compact\fR is passed, show all options on a single line separated by s
|
|||||||
.IP
|
.IP
|
||||||
If \fB\-\-all\fR is passed, show options for all formulae\.
|
If \fB\-\-all\fR is passed, show options for all formulae\.
|
||||||
.
|
.
|
||||||
|
.IP
|
||||||
|
If \fB\-\-installed\fR is passed, show options for all installed formulae\.
|
||||||
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBoutdated [\-\-quiet]\fR
|
\fBoutdated [\-\-quiet]\fR
|
||||||
Show formulae that have an updated version available\.
|
Show formulae that have an updated version available\.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user