Commit ce3dabdf authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Make --ignore-html also accept a comma-separated list.

parent 926521d0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -576,7 +576,7 @@ module JsDuck
          @touch_examples_ui = true
        end

        opts.on('--ignore-html=TAG',
        opts.on('--ignore-html=TAG1,TAG2', Array,
          "Ignore a particular unclosed HTML tag.",
          "",
          "Normally all tags like <foo> that aren't followed at some",
@@ -587,9 +587,11 @@ module JsDuck
          "",
          "Useful for ignoring the ExtJS preprocessor directives",
          "<locale> and <debug> which would otherwise be reported",
          "as unclosed tags.") do |tag|
          "as unclosed tags.") do |tags|
          tags.each do |tag|
            @ignore_html[tag] = true
          end
        end

        opts.separator ""
        opts.separator "Debugging:"