lib/brakeman/options.rb in brakeman-min-3.5.0 vs lib/brakeman/options.rb in brakeman-min-3.6.0
- old
+ new
@@ -41,9 +41,13 @@
opts.on( "-z", "--[no-]exit-on-warn", "Exit code is non-zero if warnings found") do |exit_on_warn|
options[:exit_on_warn] = exit_on_warn
end
+ opts.on "--[no-]exit-on-error", "Exit code is non-zero if errors found" do |exit_on_error|
+ options[:exit_on_error] = exit_on_error
+ end
+
opts.on "--ensure-latest", "Fail when Brakeman is outdated" do
options[:ensure_latest] = true
end
opts.on "-3", "--rails3", "Force Rails 3 mode" do