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

Describe extensively all command line options.

The last empty line is now added by JsDuck::OptionParser, so no
need to add it in every option description and inside
Logger#doc_warnings.

Additionally changed the default title to: "Documentation - JSDuck"
parent f2942117
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ module JsDuck

    # get documentation for all warnings
    def doc_warnings
      @warning_docs.map {|w| " #{@warnings[w[0]] ? '+' : '-'}#{w[0]} - #{w[1]}" } + [" "]
      @warning_docs.map {|w| " #{@warnings[w[0]] ? '+' : '-'}#{w[0]} - #{w[1]}" }
    end

    # Prints warning message.
+3 −0
Original line number Diff line number Diff line
@@ -99,6 +99,9 @@ module JsDuck
        r << "            " + line
      end

      r << ""
      r << ""

      return r.join("\n")
    end
  end
+235 −71

File changed.

Preview size limit exceeded, changes collapsed.