diff options
| author | Mike McQuaid | 2016-09-18 14:28:03 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-19 11:18:09 +0100 |
| commit | e79f62b2ead91decb3a255167d6a87020a0ad7ab (patch) | |
| tree | 23e03cfe0ad429536fbeaaee378454d5882e988d /Library | |
| parent | 515f7b52553b7f5f10904f2b3972260ae223c6e8 (diff) | |
| download | brew-e79f62b2ead91decb3a255167d6a87020a0ad7ab.tar.bz2 | |
style: allow passing taps as arguments.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/style.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 9540e853d..11c7e6773 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -1,10 +1,6 @@ -#: * `style` [`--fix`] [`--display-cop-names`] [<formulae>|<files>]: +#: * `style` [`--fix`] [`--display-cop-names`] [<files>|<taps>|<formulae>]: #: Check formulae or files for conformance to Homebrew style guidelines. #: -#: <formulae> is a list of formula names. -#: -#: <files> is a list of file names. -#: #: <formulae> and <files> may not be combined. If both are omitted, style will run #: style checks on the whole Homebrew `Library`, including core code and all #: formulae. @@ -26,6 +22,8 @@ module Homebrew [HOMEBREW_LIBRARY] elsif ARGV.named.any? { |file| File.exist? file } ARGV.named + elsif ARGV.named.any? { |tap| tap.count("/") == 1 } + ARGV.named.map { |tap| Tap.fetch(tap).path } else ARGV.formulae.map(&:path) end |
