From 7d3c581b0df2fca06872313375f25862263d0f46 Mon Sep 17 00:00:00 2001
From: Steve Purcell <steve@sanityinc.com>
Date: Sat, 18 Jul 2015 13:39:12 +1200
Subject: [PATCH] Print default error limit in help text

---
 bin/sqlint | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/sqlint b/bin/sqlint
index 0a84a3d..c7bc08f 100755
--- a/bin/sqlint
+++ b/bin/sqlint
@@ -12,7 +12,7 @@ optparse = OptionParser.new do |opts|
   opts.banner = "Usage: #{File.basename($0)} [options] file.sql ..."
   opts.separator ""
   opts.separator "Options:"
-  opts.on("--limit=N", Integer, "Limit checking to N errors") do |n|
+  opts.on("--limit=N", Integer, "Limit checking to N errors (default: #{options[:limit]})") do |n|
     options[:limit] = n
   end
   opts.on_tail("-h", "--help", "Print this help") do
-- 
GitLab