aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
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?