lib/brakeman/options.rb in brakeman-min-5.2.3 vs lib/brakeman/options.rb in brakeman-min-5.3.0
- old
+ new
@@ -321,10 +321,10 @@
opts.on "--github-repo USER/REPO[/PATH][@REF]", "Output links to GitHub in markdown and HTML reports using specified repo" do |repo|
options[:github_repo] = repo
end
opts.on "--text-fields field1,field2,etc.", Array, "Specify fields for text report format" do |format|
- valid_options = [:category, :category_id, :check, :code, :confidence, :file, :fingerprint, :line, :link, :message, :render_path]
+ valid_options = [:category, :category_id, :check, :code, :confidence, :cwe, :file, :fingerprint, :line, :link, :message, :render_path]
options[:text_fields] = format.map(&:to_sym)
if options[:text_fields] == [:all]
options[:text_fields] = valid_options