Commit Graph
17 Commits
Author SHA1 Message Date
Jack Nagel 79fa588826 Fix brew options --all
Fixes #18625.
2013-03-20 22:32:56 -05:00
Jack Nagel 7dec3406cc options: sort options consistently 2013-01-14 15:08:13 -06:00
Max Howell a9e43d65a1 Formula.Enumerable
Deprecated Formula.all, replaced usage with more appropriate enumerable options. Just check out how much nicer `brew audit` runs now.
2012-08-21 12:09:05 -04:00
Jack Nagel 803535556c Simplify build options API
Simplify access to the different forms of a formula's build options by
making options into real objects rather than strings, and expose both
the 'name' and 'flag' form.
2012-08-20 14:16:08 -05:00
Misty De Meo 9fb112f559 options: Print "--" in option name for --compact
This was a regression which caused the bash completion script to
fail to complete formula options.
2012-08-13 12:45:53 -05:00
Misty De Meo 6925f69e37 Fix normalization of old- and new-style options
When combining the set of old-style and new-style options, make sure
that the leading "--" is stripped.

Fixes displaying options in `brew options`, and the exotic case of
declaring options using the old syntax and then checking them with
`build.include?`
2012-08-11 16:54:03 -05:00
Misty De Meo 107d2d814e options: Don't add "--" to options that have it 2012-08-11 14:13:40 -05:00
Jack Nagel dba8a6aa55 options: fix missing leading "--" in output
Closes #14124.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-11 10:29:21 -05:00
Adam Vandenberg 07507228a2 Fix info/options for new options dsl 2012-08-09 09:24:27 -07:00
Adam Vandenberg 402bd729f7 Add option to the DSL
Closes #9982
2012-08-08 22:01:27 -07:00
Max Howell 12bcd19ee0 Show options for foo with brew info foo
About time right?
2012-08-04 15:40:36 -04:00
Jack Nagel bc14dcf976 Warn the user of required arguments
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-04 00:27:05 -06:00
Jack Nagel a446432fc0 options: treat outdated brews as installed
`brew options --installed` will now "do the right thing".

There is getting to be a small but noticeable amount of code duplication
among commands that take options like "--installed" or "--all"; it may
be worth factoring this out into a method that will return a collection
of formula objects based on the options that are passed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-22 19:29:10 -06:00
Jack Nagel 2313a4d2af brew-options: add --installed flag
`brew options --installed` will print options for formulae that are
already installed.

Closes #7565.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-12 15:43:18 -05:00
Jack Nagel 80bd4a5294 brew-options: actually skip formulae with no options
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-11 16:25:20 -05:00
Adam Vandenberg 94efc8f452 brew options: allow --all 2011-03-19 09:58:42 -07:00
Adam Vandenberg 485a6ee505 'brew options' now an official command 2011-03-12 11:55:10 -08:00