lib/jsduck/options.rb in jsduck-3.11.1 vs lib/jsduck/options.rb in jsduck-3.11.2

- old
+ new

@@ -10,10 +10,11 @@ attr_accessor :input_files attr_accessor :output_dir attr_accessor :ignore_global attr_accessor :external_classes + attr_accessor :ext4_events # Customizing output attr_accessor :title attr_accessor :header attr_accessor :footer @@ -71,13 +72,14 @@ "CSSStyleRule", "Event", # Special anything-goes type "Mixed", ] + @ext4_events = nil @meta_tag_paths = [] - @version = "3.11.1" + @version = "3.11.2" # Customizing output @title = "Ext JS - Sencha Docs" @header = "<strong>Ext JS</strong> Sencha Docs" @footer = "Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> #{@version}." @@ -153,9 +155,17 @@ opts.on('--external=Foo,Bar,Baz', Array, "Declares list of external classes. These classes", "will then not generate warnings when used in type", "definitions or inherited from.", " ") do |classes| @external_classes += classes + end + + opts.on('--[no-]ext4-events', + "Appends extra options parameter that all Ext events have.", + "The default is to auto-detect if we're using Ext JS 4", + "based on whether the code uses Ext.define.", + "Use this option to override the auto-detection.", " ") do |e| + @ext4_events = e end opts.on('--builtin-classes', "Includes docs for JavaScript builtin classes.", " ") do read_filenames(@root_dir + "/js-classes")