lib/brakeman/options.rb in brakeman-min-4.2.1 vs lib/brakeman/options.rb in brakeman-min-4.3.0
- old
+ new
@@ -125,10 +125,14 @@
opts.on "--branch-limit LIMIT", Integer, "Limit depth of values in branches (-1 for no limit)" do |limit|
options[:branch_limit] = limit
end
+ opts.on "--parser-timeout SECONDS", Integer, "Set parse timeout (Default: 10)" do |timeout|
+ options[:parser_timeout] = timeout
+ end
+
opts.on "-r", "--report-direct", "Only report direct use of untrusted data" do |option|
options[:check_arguments] = !option
end
opts.on "-s", "--safe-methods meth1,meth2,etc", Array, "Set methods as safe for unescaped output in views" do |methods|
@@ -227,10 +231,14 @@
opts.on "--[no-]highlights", "Highlight user input in report" do |highlight|
options[:highlight_user_input] = highlight
end
opts.on "--[no-]color", "Use ANSI colors in report (Default)" do |color|
- options[:output_color] = color
+ if color
+ options[:output_color] = :force
+ else
+ options[:output_color] = color
+ end
end
opts.on "-m", "--routes", "Report controller information" do
options[:report_routes] = true
end