lib/brakeman/options.rb in brakeman-3.7.2 vs lib/brakeman/options.rb in brakeman-4.0.0

- old
+ new

@@ -53,15 +53,15 @@ opts.on "-q", "--[no-]quiet", "Suppress informational messages" do |quiet| options[:quiet] = quiet end - opts.on( "-z", "--[no-]exit-on-warn", "Exit code is non-zero if warnings found") do |exit_on_warn| + opts.on( "-z", "--[no-]exit-on-warn", "Exit code is non-zero if warnings found (Default)") 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| + opts.on "--[no-]exit-on-error", "Exit code is non-zero if errors raised (Default)" 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 @@ -87,11 +87,11 @@ opts.on "-A", "--run-all-checks", "Run all default and optional checks" do options[:run_all_checks] = true end - opts.on "-a", "--[no-]assume-routes", "Assume all controller methods are actions (default)" do |assume| + opts.on "-a", "--[no-]assume-routes", "Assume all controller methods are actions (Default)" do |assume| options[:assume_all_routes] = assume end opts.on "-e", "--escape-html", "Escape HTML by default" do options[:escape_html] = true @@ -109,11 +109,11 @@ opts.on "--ignore-protected", "Consider models with attr_protected safe" do options[:ignore_attr_protected] = true end - opts.on "--[no-]index-libs", "Add libraries to call index (default)" do |index| + opts.on "--[no-]index-libs", "Add libraries to call index (Default)" do |index| options[:index_libs] = index end opts.on "--interprocedural", "Process method calls to known methods" do options[:interprocedural] = true @@ -199,11 +199,11 @@ options[:debug] = true end opts.on "-f", "--format TYPE", - [:pdf, :text, :html, :csv, :tabs, :json, :markdown, :codeclimate, :cc, :plain], + [:pdf, :text, :html, :csv, :tabs, :json, :markdown, :codeclimate, :cc, :plain, :table], "Specify output formats. Default is text" do |type| type = "s" if type == :text options[:output_format] = ("to_" << type.to_s).to_sym end @@ -236,9 +236,13 @@ options[:report_routes] = true end opts.on "--message-limit LENGTH", "Limit message length in HTML report" do |limit| options[:message_limit] = limit.to_i + end + + opts.on "--[no-]pager", "Use pager for output to terminal (Default)" do |pager| + options[:pager] = pager end opts.on "--table-width WIDTH", "Limit table width in text report" do |width| options[:table_width] = width.to_i end