Skip to content
Snippets Groups Projects
Commit 7d3c581b authored by Steve Purcell's avatar Steve Purcell
Browse files

Print default error limit in help text

parent b3d671ed
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ optparse = OptionParser.new do |opts| ...@@ -12,7 +12,7 @@ optparse = OptionParser.new do |opts|
opts.banner = "Usage: #{File.basename($0)} [options] file.sql ..." opts.banner = "Usage: #{File.basename($0)} [options] file.sql ..."
opts.separator "" opts.separator ""
opts.separator "Options:" 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 options[:limit] = n
end end
opts.on_tail("-h", "--help", "Print this help") do opts.on_tail("-h", "--help", "Print this help") do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment