aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2012-11-13 16:49:43 -0600
committerJack Nagel2012-11-13 16:49:43 -0600
commit976366e5ed80fe456a1b7b5b67137a9c694a1a2f (patch)
tree347fa7eb43fe38739905778e19dac361a23c5955 /Library/Homebrew/cmd
parentb7661f39fa557648b0a3abb44e50081821d162e2 (diff)
downloadhomebrew-976366e5ed80fe456a1b7b5b67137a9c694a1a2f.tar.bz2
bash completion for doctor checks
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 4a4496fbd..e939e2a2c 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -994,6 +994,11 @@ module Homebrew extend self
def doctor
checks = Checks.new
+ if ARGV.include? '--list-checks'
+ checks.methods.select { |m| m =~ /^check_/ }.sort.each { |m| puts m }
+ exit
+ end
+
inject_dump_stats(checks) if ARGV.switch? 'D'
methods = if ARGV.named.empty?